Greetings Warriors! I know there are gaZillion ways to do exit popups. Not a huge fan of them, but sometimes only way to grab attention.
Exit Popup Advice Needed
5
Greetings Warriors!
I know there are gaZillion ways to do exit popups. Not a huge fan of them, but sometimes only way to grab attention.
My issue with simple one trying is, the exit popup appears when visitor clicks order button. Do not want the exit popup to appear when clicking link (URL), ONLY when user exits page by closing, back, forward and so on.
This is what I am using in page:
Here is the contents of the xo.js:
Thinking there would be a way to add code to href tag to prevent popup on URL, but be darned if I can grasp it. Forehead sore from banging on desk
Any ideas? Have exhausted all mine.
Or any better suggestions?
Thanks!
I know there are gaZillion ways to do exit popups. Not a huge fan of them, but sometimes only way to grab attention.
My issue with simple one trying is, the exit popup appears when visitor clicks order button. Do not want the exit popup to appear when clicking link (URL), ONLY when user exits page by closing, back, forward and so on.
This is what I am using in page:
Code:
<head>
<script src='xo.js'></script>
<script>
unloaderxo.
init({
url : 'http://example.com',
msg : 'DO NOT LEAVE EMPTY HANDED! Get My FREE Pro Version...\n'+
'Click the cancel button or stay on page and t download FREE pro version!'
})
</script>
</head> Code:
var unloaderxo =
{
count : 0,
params : {msg : "OK"},
ask : function(e){
window.onbeforeunload = function(){};
setTimeout(unloaderxoGo,150);
return this.params.msg;
},
init : function(p)
{
this.params = p;
window.onbeforeunload = unloaderxoAsk;
}
}//var
function unloaderxoGo()
{
if(unloaderxo.count >= 7) // make sure we get a full timeout
{
if(unloaderxo.params.url)
location.href = unloaderxo.params.url;
}
else
{
unloaderxo.count++;
setTimeout(unloaderxoGo,150);
}//else
}//func
function unloaderxoAsk(e)
{
return unloaderxo.ask(e);
} Any ideas? Have exhausted all mine.
Or any better suggestions?
Thanks!
- Terry Jett
- [2] replies
- Blakos
- Blakos
- Terry Jett
Next Topics on Trending Feed
-
5