SimoneChecchia

RDG - Disabilitare tasto destro

May 29th, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language=JavaScript>
  2. <!--
  3. var message="";
  4. ///////////////////////////////////
  5. function clickIE() {if (document.all) {(message);return false;}}
  6. function clickNS(e) {if
  7. (document.layers||(document.getElementById&&!document.all)) {
  8. if (e.which==2||e.which==3) {(message);return false;}}}
  9. if (document.layers)
  10. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  11. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  12.  
  13. document.oncontextmenu=new Function("return false")
  14. // -->
  15. </script>
Add Comment
Please, Sign In to add comment