Intercept Selection In Window.onbeforeunload Dialog
in my web application if the user leaves the current page without having saved changes in the form a pop up window is opened to alert him about that. For the pop up I use some scri
Solution 1:
Not possible. There is no event associated with the buttons. What you might be able to do was to see if the user came back by setting a value or perhaps a cookie in the page in the onbeforeunload and test if it is there after some time has passed
but see the duplicate Way to know if user clicked Cancel on a Javascript onbeforeunload Dialog?
Post a Comment for "Intercept Selection In Window.onbeforeunload Dialog"