Disable Right Click on Webpage
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
- No one copy your content
- Easy to add on you sites or blog.
- Provides safety for your content on Internet.
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.
its not working can u explain it in video tutorial
ReplyDelete