Disable Right click in Blog


You all get irritate when your unique content copied by any other blogger.
but now i have solution for it,
By this trick users of your blog cannot right click on your blog and your content remains safe :)


This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts.


This widget is very simple to install into your blog
Following are the steps

Step 1 > Go to Template -> Page Elements.
Step 2 > Add a Page Element -> then Add a HTML
Step 3 > Now just copy and save the 

Step 3 > Now just copy and save the following code into Html and you are done !


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

//Disable right mouse click Script


var message="Hmmmm You can not do this...!!!";

///////////////////////////////////
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>

comment 0 comments:

Post a Comment

Delete this element to display blogger navbar

 
© TIPS N TRICKS | Design by Blog template in collaboration with Concert Tickets, and Menopause symptoms
Powered by Blogger