I'm using the 'window.onbeforeunload' for the first time and I've run into an issue. When the user clicks 'ok' they are taken to the previous page. That's great..
But I'm sure there's a way to redirect the user to another URL I just haven't found a way of doing it.