I have searched everywhere and I cannot find the exact solution that I am looking for. I need a javascript code that when the user tries to exit the page, an alert box pops up with the "stay on page" or "leave page" options. If the user stays, it redirects them to another page and if they choose leave it leaves. Something similar to exit splash. I know this is poor practice but it is what the clients wants. Any help will be greatly appreciated. Thanks in advance for your help.
Please help me about Javascript redirect
5
I have searched everywhere and I cannot find the exact solution that I am looking for. I need a javascript code that when the user tries to exit the page, an alert box pops up with the "stay on page" or "leave page" options. If the user stays, it redirects them to another page and if they choose leave it leaves. Something similar to exit splash. I know this is poor practice but it is what the clients wants. Any help will be greatly appreciated. Thanks in advance for your help.
- David Braybrooke
- [1] reply
- Dani78
- TotalWebsiteControl
- [1] reply
- Dani78
Next Topics on Trending Feed
-
5