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 my pop-up comming and i did not want user to close that pop-up by clicking on the window cross(X) button at the top right of it. Can I do anything to stop user from doing it? Thanks in advance. Varun.
I do recommend that you get used to searching and looking at past messages here. This sort of question seems to come up every few days. See this thread and this thread for more discussion. The bottom line is that you can try a few things, which may sort of work in particular browsers, but essentially the Web doesn't work that way. Is it just the (X} close button you want to disable? What if a user closes the window from the task bar or task manager (on Windows) or by killing its process (on Unix)? What if a user opens a different web page in your pop-up window? Can you give us some more details about why you wnat to do this. Maybe we can help find a solution which will be more "browser-friendly".