FAQ Topic - How do I close a window and why does it not work on the first one? (2008-04-29)

2008-04-29 07:00:03 AM
-----------------------------------------------------------------------
FAQ Topic - How do I close a window and why does it not
work on the first one?
-----------------------------------------------------------------------
Use ` windowRef.close() `, where windowRef is a window object
reference, such as window, top, parent, self, or a reference
obtained from the window.open() method. You can only close
windows opened by scripts, no others.
msdn2.microsoft.com/en-us/library/ms536367.aspx
docs.sun.com/source/816-6408-10/window.htm
developer.mozilla.org/en/docs/DOM:window.open#FAQ
--
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by www.pair.com.
-