Tutorial to disable right - click in your blogger blog
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….
So all what you have to do is only one simple step.
1. Login to blogger > Designs > Page Element > Add Gadget > Html/ Javascript and Paste the following code.
when you try to do right click. a message will tell you that “Function disabled”
and if you want to change this words search for
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….
So all what you have to do is only one simple step.
1. Login to blogger > Designs > Page Element > Add Gadget > Html/ Javascript and Paste the following code.
<script language="JavaScript">Now save the html/javascript and Right-click on your blog.
<!--
//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;
}
}
}
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>
when you try to do right click. a message will tell you that “Function disabled”
and if you want to change this words search for
var message="Function Disabled!";and change Function Disabled! to what ever you want.
No comments:
Post a Comment