Unique tips of blogging

How to disable right click function on blogger


In present, most people copy our blog content without our permission. If you can disable the right click function in your blog you can stop it. But there are other ways to copy your blog content. But most people try to copy using right click function.

1. Login to Blogger
2. Click layout tab
3. Click “add a gadget”
4. Select “HTML/JavaScript”
5. Now paste below code
<script language=”JavaScript”>
var message=”Sorry !!! 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>
6. Now click save button.
0 Komentar untuk "How to disable right click function on blogger"


Back To Top