FAQ Topic - How do I close a window and why does it not work on the first one? (2010-08-23)

  • Follow


-----------------------------------------------------------------------
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.

<URL: http://www.useit.com/alertbox/990530.html>
<URL: http://jibbering.com/faq/#isWindowOpen >
<URL: http://msdn.microsoft.com/en-us/library/ms536367%28VS.85%29.aspx>
<URL: https://developer.mozilla.org/en/DOM/window.close#Description>
<URL: 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.

0
Reply javascript4 (1202) 8/22/2010 11:00:02 PM

In comp.lang.javascript message <4c71abfc$0$272$14726298@news.sunsite.dk
>, Sun, 22 Aug 2010 23:00:02, FAQ server <javascript@dotinternet.be>
posted:

>Popup windows cause usability problems and are generally best avoided.
               ^ can

-- 
 (c) John Stockton, nr London, UK.    ?@merlyn.demon.co.uk     Turnpike v6.05.
 Web  <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
 PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
 Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
0
Reply Dr 8/24/2010 9:58:49 PM


1 Replies
174 Views

(page loaded in 0.957 seconds)

Similiar Articles:













7/16/2012 5:49:43 AM


Reply: