Tracy Spratt wrote:
Closing a browser programmatically is a political issue: web site police say it is bad, us application developers want to be able to control the user's interaction more.
My opinion is that it's okay (and even desirable) to close a window that was opened by the application itself, once the task for which it was opened has been completed. Browser makers agree on this, which is why IE and Mozilla/Firefox don't prompt the user on window.close() of a popup window (right?).
If you want to programmatically close the user's main window -- which the user opened manually -- then I think it's bad UI (you probably want to shutdown their system too?). Browser makers agree on this too, by prompting the user for confirmation (try window.close() on the main window).
My 2 cents.
Manish

