© Don't Republish Any Article Of This Site √

26 November, 2012

How To Disable Right Click Function In Blogger


SOCIALIZE IT →
Hi guyz! I am back with a new trick, In this trick I shall tell you that how you can disable the right click function in blogger blog. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts. 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 web masters 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 e.t.c. So let's disable right click function on your blog.


How To Disable Right Click Function In Blogger ?

  • Go To Blogger >> Layout >> Add A Gadget
  • Choose Html/JavaScript >> Paste The Following Code In Html/JavaScript's Content Box.


<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Being Geeks
//For full source code, visit http://www.beinggeeks.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>

After adding this widget, If anyone right clicks on your site than a message will appear "Function Disabled!". If you want to add another message there than edit "Function Disabled!".


0 comments:

 

Ranking

Recent Comments

Recent Comments Widget

Recent Posts

Copyright © 2012-2013. All Rights Reserved | My Tech Cafe | Designed By

Home | Contact Us | About Us | Privacy Policy |Top