How to Disable Right Click in Website or Blog
Recommendations:-
- Increase Adsense CPC : Few Tips for You
- Make Money with Adsense Without Having Website
- Mashable Style Social Bookmarking Widget for Blogger
Benefits
Now I am going to share such benefits that why we should disable right click in Blog or website. By disable right click you can avoid content theft to steal images from your site, open in new window, copy any of your contents. So if you want to protect your contents and disable right click in your Blog follow give below steps.
How to Disable Right Click in Blogger Blog or Website.
Now I will tell you how you can disable
If you are Blogger use login to Blogger.com
for manual Go to Blogger Dashboard >> Layout >> Add a Gadget
Install a HTML/Javascript Gadget and Paste the following script.
Or you may copy and paste the following script into you website
<script language=JavaScript>
<!--
//Disable right mouse click Script
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>
Now Check you Blog’s home page
Right click has been disabled.
For further assistance you can ask by reply in this post also like our Social Media Community or Subscribe our daily updates for getting new tips and tricks from TipsTricksIsland.com
Comments