Disable Right Click on Webpage



Disable Right Click on Webpage

Disable Right Click

In this post i am give your a javaScript code to disable Right code on your webpage. This code is work on blogger, WordPress and sites. This is simple to use.


Features
  1. No one copy your content
  2. Easy to add on you sites or blog.
  3. Provides safety for your content on Internet.
 How to Use On Blogger

Copy all the below code and paste on your blog.
Go on Dashboard > Layout > Add Gadgets > Html/JavaScript > Save


How to Use On Website

Copy all the code and paste before </body> Tab.


JavaScript Code
 
<!--
var message="This Function is Disabled!";
///////////////////////////////////
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")
// -->

This JavaScript Code display a Alert message saying, That "This Function is Disable" You can change this message according to your requirement.
I hope you are enjoy with this.



facebook
google-plus
twitter
pinterest

1 comment