Ya know how a lot of offers and landers have exit alerts that confirm if the person wants to leave the page? I have one that does that and forwards them to the first of two offers at the same time. I was wonder if there is a way to disable the javascript that does it if they're clicking on one of the affiliate links in the salescopy.
Here's the code i have at the bottom right before the </body> tag
Any help is much appreciated
Here's the code i have at the bottom right before the </body> tag
Code:
<script type="text/javascript" language="javascript">
var areYouReallySure = false;
var internalLink = false;
function areYouSure() {
if (!areYouReallySure && !internalLink) {
areYouReallySure = true;
location.href="http://firstoffer.here.com"
return "*****************************************************\n\nWait! \n\nBefore you leave , please take a look at this limited time offer.!\n\nClick cancel to stay on this page\n\n*****************************************************";
}
}
window.onbeforeunload = areYouSure;
</script>
Any help is much appreciated
