I already post a tutorial on How to enable right click on a website that forbid it. So now I would like to show you how to disable right click in your blogger account(I rarely post on Blogger tutorials).
Ok here is it:
Copy this following codes into your blogger template( Go to your blogger edit HTML)
<script language=JavaScript>
<!--
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>
Copy the codes into below of your <BODY> section of you blogger template
Don't forget to subscribe to our feed!!
Related Posts: Internet,
Tips and Tutorials
Share This Post
Stay updated and get latest news and tips or tutorials on technology by subscribing
to our feed or you can always get it be delivered
to your mail inbox.
Post a Comment