How To Disable Mouse Right Click Function In Blogger Blog
Disable mouse right click button function in blogger blog
You May have seen in some webpage when you click right button of mouse an alert message box show massage"Function disable" and right button click not show function (Option) like copy paste ect..
You can also Disable right Click function in your blog Or website you just need small "JavaScript"
Just Copy the html code from the below box
<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>
|










0 comments:
Post a Comment