Learn how to disable right click with JavaScript | Learnxpress

Learn how to disable right click with JavaScript

March 22nd, 2009 Anand Narayanaswamy 1 Comment

Do you want your visitors not to right click on the page they visits? If yes then check out the snippet given in this article.

<html>
<head>
<script language = "javascript">
function Disable() {
if (event.button == 2)
{
alert("This action is not possible")
}
}
document.onmousedown=Disable;
</script>
</head>
<body>
</body>
</html>
 

If You Like This Post, Share it With Your Friends & Peers

Digg
stumbleupon
Delicious
facebook
twitter
reddit
rss feed bookmar
   

One Comment to “Learn how to disable right click with JavaScript”

  1. are there any good seo forum which discusses more about keyword research?*’~

Leave your comment here:

Terms

  • javascript onmousedown disable right click
  • disable vistamalware 2010
  • no right click javascript hack
  • javascript right mouse click
  • onmousedown disable right click
  • asp net disable right click
  • javascript don;t click right
  • javascript onmousedown exception

  • How to disable Right Click in ASP NET in Java Script in MS visual studio 2008
  • seo block right click
  • javascript how to disable right click
  • disable sharethis java script
  • seo forum


Google Analytics Alternative