Friday, November 13, 2009

Disable right click on blogger blogspot

Right click on any internet browser is very important element.
and we must use it when it comes to copy or editing texts and etc..
and it’s very important when it comes to webmasters too.
but some people may use it in a bad way, and you may want to make click right disabled on your blog.
to protect you text, images links and etc….
 navigate to Layout >> Add a GadGet >> and select html/javascript

Paste the below code in that and save


<script language="JavaScript">
<!--
 
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
 
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;
}
}
}
Now You Will see that you can't access right click option ..
 




Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home