Friday 20 April 2012

Disable Right Click Option on Blogger

0 comments


Disable Right Click Option in Blogger? what is it necessary? that for me personally, it's okay. The function is very useful for those who really love the originality an article, or a party who does not copy an article accompanied by a source where they get the article.

here I'll share a little how to Disable Right Click Option in Blogger, only need to follow the little steps below: 


1. login to your Blogger dashboard 

2. Dashboard> Layout> Add Gadget> HTML / JavaScript 

3. Copy the following code in the column HTML / javascript 



<script language="JavaScript">
<!-- 

var message="Be Smart, Do Not Copy My Article!"; 
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> 

4. Save Template >> view your blog 

NOTE: on this line: "var message =" Be Smart, Do Not Copy My Article !";", message you can replace it with your own message ..
good luck, Be Fun ..!!!

Leave a Reply