Disabling right click option in your blogger BlogSpot

There are lots of websites where you cannot right click; those websites have disabled that option so that no one can copy can anything from their post. This is a very important step to do if you are making a blog to earn money let us see what to do in order to disable this feature.

  • First you have to sign in to your blogger account and you will be in blogger dashboard.
  • Click on the layout of your blog and navigate to Page Elements page.
  • The next step is to add a new gadget widget. To do so go to Add Gadget and then click on HTML/ JavaScript.
  • In the HTML/ JavaScript box add the code mentioned below:

<script language=”JavaScript”>
<!–
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
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>

  • Now save it and your work is done.
As soon as you save the widget, you have succeeded to disable the right click feature in your blog. No one can copy any stuff from your blog and it will be a unique blog. This step completely depends on your wish, and it is just an option, not a must-to-do step.
SHARE

NO COMMENTS

LEAVE A REPLY