0
But this can be frustrating if the customer wants to go to a different webage of the same site
Thanks by unregistered 6 months ago
You can use the onBeforeUnload event. You can ask the user before they leave if they really want to exit your site. And you're able to send out an AJAX request the the user leaves. Try this DEMO.