Main Menu
SEO
seo articles
seo books
Promotion
Programming
Databases
HTML
JavaScript
PHP


   Online Tools

   Amazon

   Link Directory


No right click on page

 

Prevent users from right clicking and grabbing content. This is a popular script but it is not foolproof and will not stop the more determined visitors from grabbing images on your site but it may help.

<script language="JavaScript1.1" type="text/javascript">
<!--

function right(e) {
var msg = "Sorry, you don't have permission to right-click.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
//-->
</script>

 


 

 



 




   Sponsors
 

   Free Content

  Tutorials
 




Copyright © 2004 by programmershelp.co.uk