My team has been looking for some good exit popup code for a client and found it hard to find code that would pop an exit popup when a user was leaving the page without also calling the popup when users clicked internal links. With that said I searched google for:
The first result from Gath Adams hits the nail right on the head: Code the perfect Exit Popup
I did notice a syntax error on line 36
alert(‘Here is your popup!);
is missing the closing quote – so it should be:
alert(‘Here is your popup!’);
Otherwise, his code works great. Thanks Gath (pronounced Garth)!
Glad you found it useful.
Thanks for the info on the syntax error. I had fixed it up a while ago, but I had to restore posts from a backup & now the bug is back!
Cheers,
Gath
I’m actually anti pop up !
Can we open a popup in subdomain ?
* THIS CODE DOESNT WORK ON SAFARI 5/PC *
can someone please confirm this?
I just want to triple confirm–there really is no way to open an exit pop without the javascript dialogue, right?
One problem I find using the code in asp.net – it will pop up if a user clicks the submit button! Any way around this?
Hello there.
I recon this exit pop up as a marvellous solution for getting important informations back from users abandoning the website. But I simply cannot make it work… :-/
could you quote for assisting making it work cross browser?
I need it to work with a joomla site, using several templates.