How to Disable Right Button Click
Thursday, April 7, 2011
Disable Right Button Click (gctonlinesupport.blogspot.com) Click To disable your site right button click you can use this code. I t will be helpful to protect your site unwanted use of another blogger. No one can not see your page source. It is so effective.
Use This Following Code Into A Gadget To HTML and Java Script:
<script language="JavaScript"><!--
//Disable right mouse click Script//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive//For full source code, visit http://www.dynamicdrive.com
var message="Function Disabled!";
///////////////////////////////////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>
0 comments:
Post a Comment