7.02.2011

Disable right click Blogger

  1. Do U wanna Disable right click of a mouse. Then do the following
  2. Signin into your blogger Account
  3. Click on Layout Text Link or Layout Tab
  4. Now Click Add a Gadget Text Link, a pop box will open
  5. U'll find a couple of gadget options, among them U find a "HTML/JavaScript" option with + button symbol on the right. Now click the button and a pop up box will open.
  6. Now Copy and Paste the below 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>


    • After placing the code Save it
    • Its over, this is how right click of a mouse is Disabled 
    • Now see the magic by right clicking the mouse
    A Blogin Blog Directory

    No comments:

    Post a Comment