SHARE
TWEET

Untitled

a guest Jul 15th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language=JavaScript>
  2. <!--
  3.  
  4. var message="Function Disabled!";
  5.  
  6. ///////////////////////////////////
  7. function clickIE4(){
  8. if (event.button==2){
  9. alert(message);
  10. return false;
  11. }
  12. }
  13.  
  14. function clickNS4(e){
  15. if (document.layers||document.getElementById&&!document.all){
  16. if (e.which==2||e.which==3){
  17. alert(message);
  18. return false;
  19. }
  20. }
  21. }
  22.  
  23. if (document.layers){
  24. document.captureEvents(Event.MOUSEDOWN);
  25. document.onmousedown=clickNS4;
  26. }
  27. else if (document.all&&!document.getElementById){
  28. document.onmousedown=clickIE4;
  29. }
  30.  
  31. document.oncontextmenu=new Function("alert(message);return false")
  32.  
  33. // -->  
  34. </script>
RAW Paste Data
Top