Welcome to our AllBlogTools.com v.3 new version, We are still in beta, please contact us to report an error.

|| View All Tutorials ||

Disabling Right Click on Blogger

Disabling Right Click on Blogger

1 Star2 Stars3 Stars4 Stars5 Stars

Report Error

1,085 views

Here’s a great tip that can protect your blog content from thieves. Vijay Prakash shows you how by disabling the right click of your Blogger. By doing this, you’ll be able to keep others from copying your precious work.

Below are his simple steps:

  • Go to Blogger Dashboard > Layout > Add a Gadget.
  • Select HTML/Javascript.
  • Paste the code below inside it:
<script language=JavaScript>
<!--
//Disable right mouse click Script
var message="Function 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")
// -->
</script>
  • Save the gadget then save the layout.

 

Liked It ? Please Share

Comments will be closed off on this post 365 days (1 year) after it is published. Apologies to this, but it's all about avoiding a growing comment spam problem. See our most recent posts where you can comment here