How To Disable Right Click On Your Mouse To Protect Images
home hosting domains company Design suppport FORUMS CONTACTUS  
Suppport
 
Contact Us Tutorials Guides FAQs Forums
FAQs CATEGORIES
Web Hosting
Domains
PHP Scripts
MySQL Database
HTML
Perl
Javascript
General
 
FAQs
Visit our Frequently Asked Questions Section to find the answer you are looking for

How To Disable Right Click On Your Mouse To Protect Images


Try it! Demo: Try right clicking on this image:

Instruction: Place the following code between your <head> and </head> tags on your page.

<script language=JavaScript>
<!--

var message="Right Button Disable";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>

 

 

 
   
 
 
 
home | hosting | domains | company | Design | suppport |
 
Copyright (c) 2004-2007 - All Rights Reserved. Webune ® is a Registered Trademark
 
Page generated in 0.1725 seconds