How To Disable Right click on Blogger/Blogspot blogs
It becomes a disadvantage if you disable right click on tutorials, codes sharing blog as it will avoid newbie bloggers from copying the shared tutorials as they use mouse to copy them. So think about your blog content and then move on with implementing the mouse right click disabling JavaScript code on your blog.


How To Disable Mouse Right click on Blogger blogs
1. Go to blogger dashboard > Layout > Add a gadget.
2. Choose Html/JavaScript gadget and paste the following peace of code just inside it.
Right click disabling JavaScript code
<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>
3. Save the gadget.
4. Save the layout.
Thats it pals.. Isnt it very simple?!:).
How To Disable Right click on Blogger/Blogspot blogs
Reviewed by Hashir
on
8:32 pm
Rating:
Reviewed by Hashir
on
8:32 pm
Rating:
No comments:
Post a Comment