ddrh
01-07-2006, 05:21 AM
I been using a great little code that loads a page in the same window on exit. I just put onclick="xit=false" to stop the script when they click on a link on the page. BUT... How do you keep it from loading if someone clicks on a adsense ad?
Here's the script code...
<body onUnload=xit()>
<script language="JavaScript" type="text/JavaScript">
function xit() {
window.location="http://domain.com";
}
</script>
Is there any way that the adsense block and this code can get along????
Thanks for any help you can offer. :confused:
Here's the script code...
<body onUnload=xit()>
<script language="JavaScript" type="text/JavaScript">
function xit() {
window.location="http://domain.com";
}
</script>
Is there any way that the adsense block and this code can get along????
Thanks for any help you can offer. :confused: