Posted By

icecreamboyy on 02/23/11


Tagged

javascript js


Versions (?)

No Right Click for beginner theif prevention


 / Published in: JavaScript
 

  1. <script language="JavaScript">
  2. <!-- var popup="Sorry, right-click is disabled.\n\nThis Site Copyright ©2006"; function noway(go) { if
  3. (document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers)
  4. { if (go.which == 3) { alert(popup); return false; } } } if (document.layers)
  5. { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // -->
  6. </script>

Report this snippet  

You need to login to post a comment.