Register    Sign in
Authentification
uCoz Scripts » Others » –

Disable right click on a page

Add to the top of you page and make the page not able to be right clicked.
Code
<html>
<head>
<script type="text/javascript">
  if (document.addEventListener) {
  document.addEventListener('contextmenu', function(e) {
  alert("Right click is disabled."); //script by gaming-input.com
  e.preventDefault();
  }, false);
  } else {
  document.attachEvent('oncontextmenu', function() {
  alert("Right click is disabled.");
  window.event.returnValue = false;
  });
  }
</script>
</head>
<body>
</body>
</html>






Autor: Website Owner  2017-08-21, 13:56:08   Views : 826   

Tags:


Total comments (1)
avatar
1 Website Owner • 02:37:39, 2014-11-17
[spoiler=[url=http://www.gaming-input.com/]Spoiler]HI! :)[/spoiler]
avatar