I have a form that collects data. Once the data has been collected, the user is presented with a screen giving them some information and requesting them to click the final link on the page.
I don't want to just redirect them because the information they are given is important. However, I've noticed that quite a few users are not clicking the link and exiting the page via other means.
This is causing me serious issues - degrading service levels with affiliate partners and putting me at risk of suspension.
I'm not a fan of manipulating the user journey but there is no valid reason to click away at this point, so I would like to look at redirecting them automatically if they do anything to exit the page other than click the link.
After much Googling, I've come up with the window.onbeforeunload
function, but I'm not sure this will do exactly the job I need.
Looking for ideas to achieve this functionality, or alternatively do it via another viable method.
All advice appreciated.