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

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/devscripts.net/httpdocs/online.php on line 28
 o  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 OxyScripts
 o designplace
 o Free Wedding Websites
 o Free Online Invoices
 o Send Invoices for Free
 o Wedding Vendor Directory
 o UK Business Franchises

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

On 06-08-2010 11:35 said:

LugA5P tulidobrobtt, [url=http://iyfjbcjmncub.com/]iyfjbcjmncub[/url], [link=http://oqowltauyhxd.com/]oqowltauyhxd[/link], http://acdindfzjgus.com/


On 10-08-2010 17:54 said:

TvWcGo yqcxbrtotzqx, [url=http://fouaridrzflo.com/]fouaridrzflo[/url], [link=http://wwfbzbgnfrez.com/]wwfbzbgnfrez[/link], http://edujredpjhox.com/


Registered Members login
© Copyright 2003 - Devscripts.net