This script really is pretty crappy. It isn’t pretty, and it isn’t real nice. People hit cancel instead of reading it and when they do, it sends them to your offer. For the crappy little cherry on top, I put my own affiliate link in there. If you don’t change it, I’ll be making the money instead of you.
The below script will send people wherever you want if they hit cancel. It will let them close the window or navigate away if they hit OK. It should be placed right before the </head> tag. This is really for langing pages only. You should use ‘open in new window’ on your links on this page, because otherwise this script will fire no matter what they click.
If you have a better one, feel free to post it in the comments or e-mail it to me and I’ll include it here.
<script type=”text/javascript” language=”javascript”>
var areYouReallySure = false;
var internalLink = false;
function areYouSure() {
if (!areYouReallySure && !internalLink) {
areYouReallySure = true;
location.href=”http://www.healthbuy.com/?aid=314867”
return “*****************************************************\n\nWait! \n\nPut your own sales text here, I’m not doing everything for you.\n\nThis product outperformed all other products.\n\nIf you want to have it all, this product can make that happen.\n\nClick cancel to visit our top recommended product’s site\n\n*****************************************************”;
}
}
window.onbeforeunload = areYouSure;
</script>





No Comment
Random Post
Leave Your Comments Below