teng84 Posted October 19, 2011 Share Posted October 19, 2011 Hi, Does anybody have the sample code that when user close the window there a form apear asking the user for some options? Quote Link to comment Share on other sites More sharing options...
Adam Posted October 19, 2011 Share Posted October 19, 2011 You just need to attach a confirm() call to the "onunload" event. Quote Link to comment Share on other sites More sharing options...
teng84 Posted October 20, 2011 Author Share Posted October 20, 2011 that wont do the trick when i tried that it close the page then show the pop up when i use onbeforeunload theres a pop up message but i dont like that pop up i want to display my form BTw thanks for the help man Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.