faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

40 of 64 people (63%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How can I check from a window whether the opener window has been closed?

Mar 6th, 2000 05:16
Martin Honnen, James Walford,


Window objects have a boolean
  closed
property you can check so access the opener window
  window.opener
and check the property
  if (window.opener.closed)
    // do stuff when opener closed perhaps
    // window.close()
  else
    // do stuff when opener is still open