I would be grateful if someone could give me a tip to my problem:
I have two HTML-Pages containing Java Script .The user opens a Browser window containing the first page.When the Java Script at this page is executed, it opens a new browser window containing the second page, using the window.open("HTLM-Page name") method.That means a Java Script contained in the second window can handle the first one using the window.opener object reference.
My Requirement is, if I close my first page my second page should also get closed and also if my second page is closed the focus should be set to the first page. All I have to do is to call the method window.opener.focus(). The problem is, if the user already closed this first window, I can‚t transfer the focus anymore.
My question is how can I check whether the first window was closed or if it's still opened?
I already tried to ask for the property window.opener.closed this is not a problem in IE 6 but raises an error in IE 5.0.
Thank you very much in advance.