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? Link to comment https://forums.phpfreaks.com/topic/249400-exit-popup/ 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. Link to comment https://forums.phpfreaks.com/topic/249400-exit-popup/#findComment-1280566 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 Link to comment https://forums.phpfreaks.com/topic/249400-exit-popup/#findComment-1280732 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.