Header Ads Widget

Ticker

6/recent/ticker-posts

How To Stop Right Clicking In Your Blogger/Blogspot Blogs ?





1.Login to your blogger Dashboard and go to Desing –> Page Elements.

2.Click on ‘Add a Gadget’ on the sidebar.

3.Select ‘HTML/Javascript’ and add the one of code given below and click save.




<script language="JavaScript">

<!--

//Disable right mouse click Script

//For full source code, visit http://www.onside.in

var message="Function Disabled! You Can Use Ctrl+Click To Open In New Tab";

///////////////////////////////////

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>

<script language="JavaScript"><!--
//Disable right mouse click Script//For full source code, visit http://www.onside.in
var message="Function Disabled! You Can Use Ctrl+Click To Open In New Tab";
///////////////////////////////////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>

your done !!

Post a Comment

0 Comments