Friday, February 7, 2014

Disable Right click in Blogger

Disable Right click in Blogger




















This Mainly to prevent leechers from copying your blog


Step 1 : Go to Dashboard > Layout > Add Gadget > HTML / JavaScript.
Step 2 : Copy the code bellow and paste it in that blogger widget.
Step 3 : Save ! Enjoy
That code

HTML Code:

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

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

0 comments:

Post a Comment