Exit Popup Advice Needed
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:
<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>
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 -
Thanks - 2 replies
SignatureQikSoft Free Software | Best Autoresponder{{ DiscussionBoard.errors[8095718].message }}-
Blakos -
Thanks
{{ DiscussionBoard.errors[8111909].message }} -
-
Blakos -
Thanks
{{ DiscussionBoard.errors[8111912].message }} -
-
-
Terry Jett -
Thanks
SignatureQikSoft Free Software | Best Autoresponder{{ DiscussionBoard.errors[8112385].message }} -