Home| News Daily| News Monthly| Submit| Monthly Report

How to disable the right click at your website? by Angel of Adsense
Released by: Angellica2017
Web Site: http://tipstrick.sinfree.net
Tipstrick Article by Angellica2017


Email: angellica2017@yahoo.com
Keywords: adsense cheat, adsense tips, adsense tricks, tipstrick, adsense, kpli, angel of adsense
Update Date: 9/19/2006 5:34:03 AM
Hits: 147

Descrption:
 How to disable the right click?
AS we know on Google's policy that : clicking on Google ads must not result in a new window...."
Clicking on the ads with right click and open it in a new tab/window will be categorized as invalid click. This script is useful for avoiding the invalid clicks at your ads! Here's a script for disabling the right click on your browser, so visitors could not open your ads in new tab or new window.

<SCRIPT language=JavaScript>
<!--
var message="Put your line 1 here \n \n Put your line 2 here \n \n Put your line 3 here";
function click(e){if(document.all){if(event.button==2||event.button==3){alert(message);return false;}}
if(document.layers){if(e.which==3){alert(message);return false;}}}
if(document.layers){document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;

function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//-->
</SCRIPT>

(This script works on IE browser only)


<script type="text/javascript">
<!--
function disableRightClick(e)
{
var message = "Change this tipstrick text with your message";
if(!document.rightClickDisabled) // initialize
{
if(document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = disableRightClick;
}
else document.oncontextmenu = disableRightClick;
return document.rightClickDisabled = true;
}
if(document.layers || (document.getElementById && !document.all))
{
if (e.which==2||e.which==3)
{
alert(message);
return false;
}
}
else
{
alert(message);
return false;
}
}
disableRightClick();

function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>

(This script works on most browsers)

 |  Software Hypermarket |  Contact us |