1

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


Subscribe To Get FREE Tutorials!

Related Posts Plugin for WordPress, Blogger...


Share your views...

1 Respones to "How To Stop Right Clicking In Your Blogger/Blogspot Blogs ?"

kierunki xn--studiw-fxa said...
30 August 2011 at 04:46

Thanks for all of your efforts on this web site. My niece really likes getting into investigation and it's easy to see why. Almost all hear all about the powerful mode you convey both useful and interesting suggestions on your blog and even increase response from others on the issue plus our favorite simple princess has been studying a whole lot. Enjoy the rest of the new year. You have been doing a first class job.

Post a Comment

 

© 2011 CoolTricks This content is copyrighted to f10f1111 | Powered by Pro Thesis Theme| Designed by f10f1111