I have been searching the internet for a very long time for a solution to this but to no avail. I need someone to help me out with the following.
When a visitor tries to exit out of my webpage, a dialog box appears and asks them to stay for x amount of time. I've seen this done before, but I can't seem to cite an example here. Basically, I would like the user to stay on the webpage for at least 30 seconds. So when they go to close the window or tab, a box will appear and ask them to stay for 30 seconds. When that time is up, they can leave the page. Does anyone know how to do this? Please help me out! Thank you so much.