I need a javascript exit alert/popup redirection needed.
When someone tries to close the page, it should ask to confirm if he wants to exit, and redirect him to another page on cancel. This should not happen while following any links on page.
Ex. [login to view URL]
But that one doesn't work correctly in safari. two popups are opened while exiting the page.
It should work correctly in IE6,7,8, Firefox 2,3, safari, google chrome.
If you can provide me instant solution, that would be great.