Prompt Window Closing
Q: Waqas wants to stop the confirmation dialog box that sometimes pops up
when closing a window through script.
A: There is no way to prevent this behavior. Invoking the window.close
method on a window not opened with script, or on the last running instance
of Internet Explorer will trigger a confirmation dialog box. This is good
behavior from a user perspective. If someone has opened an Internet Explorer
window to do something and a site suddenly closes it, they are going to be
frustrated. If you want to close the window at the end, then open a window
specifically for your application.
Brent Serbus [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.