Slotland Affiliates VIP campaign
Unlock a world of earning potential! With a trusted program that's been delivering results for years, and gain access to top-performing brands 🚀

Exit Pop Up Script Issue

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