How to Disable Right Click Functionality on Blog, How to Disable Right Click Functionality on Blogger Blog
Right-clicking on any internet browser is a very important element and we should use it when it comes to copying or editing text etc, this is very important when it comes to webmasters as well. but some people may use it in a bad way, and you may want to make right click disabled right on your blog. to protect your article text, images, links etc.
ever you noticed that some sites do not allow their visitors using a right mouse click while in his home area? This option is useful for site owners and blogs, who want to minimize the possibility of copying the content directly to another post or copy and paste.
To disable the right click function on the blog , Copy the following code and paste it into your blog by adding a new page element. and here's how
Step 1: Go to Dashboard> Layout> Add a Gadget> HTML / JavaScript
Step 2: Copy the code below and paste it in your blogger widget.
<script language=JavaScript>
<!--
//Menonaktifkan Fungsi Klik Kanan di Blog
//By INDZIGN
//For full source code, visit http://www.arlinadzgn.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>
Customization: You can also change Function Disabled with your own Custom Message. It will display when someone tries to do right click on your blog.
- How to Disable Text Selection (Copy Paste) Excluding Blockquote in Blogger?
I hope you successfully disabled right click on your blogger blog to get rid of copycats. If you still face any difficulty or for any suggestion, you can drop a comment below.
0 Comments: