|
|
Q1336 From the child window, how can I check to determine if an opener window is still opened?
irt.org | Knowledge Base | JavaScript | Window | Q1336 [ previous next ] Q1336 From the child window, how can I check to determine if an opener window is still opened?If the opener window is closed and the child window has a link that loads into the opener window, a run-time error will occur because the opener window doesn't exist anymore. Netscape Navigator 3+ and Internet Explorer 4+ support the closed property of the window object, so you could attempt to check that the window still exists, and if not open a new window:
Paul writes: There seem to be problems using window.opener in later versions of Internet Explorer: http://support.microsoft.com/support/kb/articles/Q241/1/09.ASP?LN=EN-US&SD=gn&FR=0. Perhaps you could update your articles to warn people of this. Feedback on 'Q1336 From the child window, how can I check to determine if an opener window is still opened?' |
-- div -->
|