Hi guyz! I am back with a new trick, In this trick I shall tell you that how you can disable the right click function in blogger blog. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts. Right click on any internet browser is very important element and we must use it when it comes to copy or editing texts and etc. It’s very important when it comes to web masters too. but some people may use it in a bad way, and you may want to make click right disabled on your blog. to protect you text, images links and e.t.c.
1st-> Open Your Blogger Account
2nd->Click On Layout
3rd->Click On Add Gadget
4th->Select HTML/JAVASCRIPT
5th->Put The Following Code
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Being Geeks
//For full source code, visit http://www.beinggeeks.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>
After adding this widget, If anyone right clicks on your site than a message will appear "Function Disabled!". If you want to add another message there than edit "Function Disabled!".
Please Leave Your Comment
Thanks for such a great post.
ReplyDeleteLondon Escorts