Tuesday 23 July 2013

HOW TO DISABLE RIGHT MOUSE BUTTONS FOR YOUR BLOGGER

1. First thing you need to sign in your blog Dashboard, go to Design and click on Add a Gadget.



2. Now choose the HTML/JavaScript gadget.



3. For the final step place this piece of code inside:


<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>

No comments:

Post a Comment

Follow Now......!

You might like this

Click Here Please

Ads 468x60px