Randy Webb wrote :
Gérard Talbot said the following on 9/1/2005 12:54 PM:
Where?
"Using script to close the last running instance of Microsoft Internet
Explorer also opens the confirmation dialog box."
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/close_0.asp?frame=true
That depends on the user I guess.
I make a general rule, a generalization if you prefer, from this.
Any/every window has a system command close [x] button on the titlebar.
So why do scripters need to provide me with links, buttons, etc.. to
close that window. If I can open a new window on my own, I certainly can
close a secondary window on my own. Same thing with closing the internet
connection, shutting down the PC, closing the tv, etc.. I do not need
any additional, extra help in managing (open, resize, move and close)
windows which should be under my complete and entire control to begin
with. Browser manufacturers (Mozilla, Opera, Microsoft, Safari,
Konqueror, etc) understand such perspective and agree with it and they
are providing users with veto powers over script methods like open(),
resizeTo, moveTo, resizeBy, resizeTo, close, etc..
Somehow, I doubt it but would be totally shocked if it does. Considering
that IE has had that bug since IE5 or so, and it hasn't been fixed
through 3 versions, I don't see them fixing it now. That would require
MS to admit they had flawed software and actually fix it.
They can fix the bug without admitting anything seriously detrimental
too; security is a concern for all browser manufacturers and for
web-aware software makers. I created a page back 1-2 years ago with your
own data, Randy:
http://www.gtalbot.org/BrowserBugsSection/MSIE6Bugs/ClosingWindowsNotOpenedByJS.html
and then posted a request (see/search for: "opener property should be a
read-only property") in that sense at:
http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerSecurity
I also made sure Opera dev. is aware of this close() issue.
Current Mozilla-based browsers do deny the capability to close such windows.
The default setting of dom.allow_scripts_to_close_windows in
about:config is false.
"reasonable and responsible web designers" don't use secondary windows,
so they have no need to close superficial windows.....
I would add one nuance to such statement but I'd rather not since I
fully (general rule) support this opinion.
Gérard