• Welcome to affLIFT!
    We are happy you have decided to check out our awesome affiliate marketing forum. Register your account today to join our amazing community!
  • With over 2.5 billion impressions and 3.3 million daily conversions, you are making a huge mistake if you are not already running traffic with Clickadu!
    Join Clickadu Today

Exit Pop Up Script Issue

Geozo

ajaxprd

Super Contributor
Joined
May 2, 2018
Messages
73
Hi @Luke, I am trying to implement following exit pop up script on landing page. However, its JS dialogue box after Pressing OK, doesnt seem to proceed. JS alert box runs in loops. Can you please help here? I found this script in our forum. I am not that good in JS stuff.

<script>
window.exitMessage = "Do you really want to exit?";
window.redirectURL = "http://affiliate-Smartlink.com";
function exitStopper()
{
alert(window.exitMessage);
if( window.redirectURL )
{
window.location.href = window.redirectURL;
} }

window.addEventListener('blur', exitStopper );

document.body.addEventListener("mouseleave", function(e)
{
if( e.offsetY <= 0 )
{
exitStopper();
}
}, false);
</script>
 
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top