Free web development scripts for the webmasterDevelopment Scripts


 
 Site Navigation
 o Development Scripts
 o Text Only Edition
 o PHP.net News
 o Tutorials
 o Register an account
 o New entries this week
 o Affiliates/Links
 o Contact Us
 o About us
 o Advanced Search

 Browse Path
 o 5 users online
 o Most users online: 67
 o Home
  o Javascripts
   o Miscellaneous
    o Script

 Member Login
User Name
Password

 Standards
Valid XHTML 1.0!
Valid 
CSS!

 Recommended Links
 o PHP Freaks
 o Designer Baby Clothes
 o Advertise Here Make Money
 o Free Online Invoices
 o OxyScripts
 o designplace
 o Free Wedding Websites
 o Wedding Vendor Directory

Disallow right click (Rated 5)

Description:

This is a basic form of blocking the right click functionality. Personally I can never see a valid use for this, as there will _always_ be away around it. Anyway, its here if you want it..

Code starts here


<script language="Javascript1.2">

message = "Function Disabled!";

function NoRightClick(b) {
if(((navigator.appName=="Microsoft Internet Explorer")&&(event.button > 1))
||((navigator.appName=="Netscape")&&(b.which > 1))){
alert(message);
return false;
}
}
document.onmousedown = NoRightClick;

// -->
</script>


Submitted by Devscripts on 17-02-2003 21:46


Rate This Script

User Contributed Comments

Registered Members login
© Copyright 2003 - Devscripts.net