| | #1 |
| HyperActive Warrior War Room Member Join Date: 2011
Posts: 148
Thanks: 126
Thanked 12 Times in 10 Posts
|
Hello, I was wondering if anyone knows the script for an Exit Pop up which would only pop up for visitors who leave the website within ten seconds? For the visitors who stay longer than 10 seconds that would not get a popup. It just for the fast visitors in my case. |
| |
| | #2 |
| Obey they HypnoToad Join Date: 2013
Posts: 56
Thanks: 0
Thanked 5 Times in 4 Posts
|
Yeah it's possible. It's a lot of work. Involves adding a JS layer to all your links.
|
| |
| | #3 |
| Advanced Warrior War Room Member Join Date: 2006 Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
|
On page load, you could store the current timestamp (getTime) in a global JS variable. Then you would insert a conditional statement very first thing inside your popup function that checks the global variable to see if 10 seconds has passed -- if so, it immediately exits the popup function -- if not, it lets the popup function run. I don't know of any exit popup that has this functionality built in, but it would be pretty simple to tweak an existing popup script to do this. |
| | |
| |
|
| Bookmarks |
| Tags |
| create, exit, page, pop, redirect, timed |
| |