Hey guys today I am going to show how to disable right click on your blog. Disabling right click will keep protected your blog from copying contents and copying images etc. To disable right click you
need to add a simple JavaScript code to your blog. In this post I am giving you that JavaScript code for you to disable right click on your blog.
- How To Create Contact Us Page For Blogger
- How to Add Simple Author Bio Box Like SYB
- How To Add 3D Social Spinning Icons For Blogger
- How to Add Advertise Here Banners
- Get Facebook’s New News Feed Right Now!
How to Disable Right Click In Blogger Blogs
- Login to your blogger dashboard.
- Go to Layout –> Add a Gadget –> HTML/JavaScript.
- Then the copy the below code and paste it there.
<script language=JavaScript>
<!–
var message=”No Copy Paste!“;
///////////////////////////////////
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>
- Save.
- You’re done.


No comments:
Post a Comment