Sign-up for FREE weekly Newsletter.

Monday, 29 August 2011

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


Labels: , , , ,





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

0 comments:

Confused? Feel free to ask

Stay Connected

 

Recent comments

Recent comments

Followers

Sponsors

Recent comments

fefew

About US | Sitemap | Privacy Policy | Contact US | Mobile Version | Dynamic Version |
Copyright © 2011. Mobile-Repair | Powered by Blogger.com.