Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 2

How can I override the browser's right-click settings?


Guest
Go to solution Solved by rgrphoto,

Question

Guest

I was wondering if you could please help me as I would greatly appreciate it. I am really in a jam...

Could you please tell me the code able to BLOCK RIGHT CLICK so people can not see/view resources....

I can't thank you enough in advance...

Best to you,

Gianluca

Edited by Guest
Changed subject to question.
Link to post
  • Answers 32
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

<script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.ge

I figured out how to get rid of the annoying Alert message. Just inject this header code: You are very welcome ;)

Recommended Posts

  • 0

I make sure that all my images are tracked and protected by a site like www.Pixsy.com

I agree with Squarespace, that the code injection is just injecting a false sense of security.

Link to post
  • 0

I figured out how to get rid of the annoying Alert message. Just inject this header code:


<script language=JavaScript> var message=""; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("return false") </script>

You are very welcome ;)

Edited by Mr_Bubz
Initial Revision
Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...