From: FAQ server on
-----------------------------------------------------------------------
FAQ Topic - How do I close a window and why does it not
work on the first one?
-----------------------------------------------------------------------

If a window was opened by javascript, then it can be closed
without confirmation by using ` windowRef.close() `.

Before calling ` windowRef.close() ` (or other ` window ` methods), make
sure the window reference is not null and its ` closed ` property is ` false `.

Popup windows cause usability problems and are generally best avoided.

http://www.useit.com/alertbox/990530.html

http://jibbering.com/faq/#isWindowOpen

http://msdn.microsoft.com/en-us/library/ms536367%28VS.85%29.aspx

https://developer.mozilla.org/en/DOM/window.close#Description

http://docs.sun.com/source/816-6408-10/window.htm#1201822


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.