Thursday, 12 June 2014

How To Disable Mouse Right Click Function In Blogger Blog

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>



>> Go to Blogger Dashboard 
>> Click the Layout 



>> Click the Add a Gadget and go to html JavaScript 


>> Click the the html / JavaScript .

>>and paste the code on  JavaScript box .  



 Then Save arrangement. 

Don't forget to like us on Facebook.

0 comments:

Post a Comment

visitor

 
- See more at: http://adminwidget.blogspot.in/2014/06/how-to-add-next-previous-numbered.html#.U60N95SSyKQ