SHARE
TWEET

RDG - Disabilitare tasto destro

SimoneChecchia May 29th, 2017 (edited) 98 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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top