Home Advanced Code No Right Click Without A Warning

No Right Click Without A Warning

E-mail Print PDF
Don't want visitors to be able to right click on your page yet you don't like giving them a popup warning either?

Paste this code into the head of your webpage:

Code:
<script language=JavaScript>
 <!--
 
 
//Disable right click script III- By Renigade ( \n This e-mail address is being protected from spambots, you need JavaScript enabled to view it This e-mail address is being protected from spam bots, you need JavaScript enabled to view it )
 //For full source code, visit http://www.dynamicdrive.com
 
 
var message="";
 
///////////////////////////////////
 
function clickIE() {if (document.all) {(message);return false;}}
 function 
clickNS(e) {if
 (
document.layers||(document.getElementById&&!document.all)) {
 if (
e.which==2||e.which==3) {(message);return false;}}}
 if (
document.layers)
 {
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
 else{
document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
 
 
document.oncontextmenu=new Function("return false")
 
// -->
 
</script> 

 

Domain Names

Sample image .com .info
.mobi .net
.org .tv .us
.biz .ws .name
.am .at .be .cc .cn .de .eu
.fm .jobs .jp .ms .nu .nz
.tc .tw .uk .vg .ASIA .ME

Website Hosting

Sample image We're the affordable, reliable place to host your site. And unlike the competition, there's no set up fee and no annual commitment.

24/7 Support

Sample image Our highly trained, courteous support staff is waiting to help. We'll resolve any issue to your complete satisfaction.