Wednesday, 13 March 2013

How To Disable Right Click






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. It’s very important when it comes to webmasters too. but some people like (A Stupid Fellow, Does This) 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.

The Best way is to Disable right click on your blogs.
Follow the Below Steps To implement this technique on Your Blogger Blogspot Blog:
Step-1: Go Your Blogger Dashboard Select A Blog.
Step-2: Go to Layout of your Blog and Add A Gadget Select HTML/JAVASCRIPT
Step-3: Now Copy Below code and Paste.



<script language=javascript>
<!--
//Disable right mouse click Script
//By Blogging Mafia

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>




Finally Save it and You are Done !!!
Now try to select some text in your Blog and you will see that right click does not works.
When you right click this message will Pop "function disabled".


* You Can Also Change Text Message On The Popup Box , Just Change The Text Written In Red Color  

ENJ0Y !!!                            ENJ0Y !!!                        

1 comment:

Unknown said...

Howz The Post !!!

Post a Comment