This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I have a popup window which contains a form which the user can to set/update his preferences(This has a submit button). Now if he tries to close the popup window without submitting the form, I have a confirm box which asks him whether he wants to close the window. So the popup window should remain open until the user confirms it to be closed. I thought "onUnload" property will do, but that property seems to be used only after unloading of the window, not just prior to it. It is too late by then. Someone sugested "onbeforeUnload" but it works in IE not in netscape. Can someone help me out? Thaks, Shaji B
well one solution could be to remove the tool bar from the window and provide a button to close the window...so that u can have a confirm popup when the button is clicked (onClick()) and then when confirm returns true u can say self.close() (actually self.close() ) should pop up a dialog box on its own...anyway i hope you get the idea...thats how most popups are they are without the tool bar so a user cannot click to close it manav