var childWindow = window.open();
window.onunload = function()
{
if(self.childWindow) childWindow.close();
Quote:
}
| Hi all...I have a page, which i open using window.open (Let's call it
first
| child).
| From this page i have a button, which opens another popup..(Let's call
it
| second child)
|
| on closing of the second child i set a few hidden variables in the
first
| child
| My problem is that when i close the firstchild(using the default cross
no
| the top), when the second is still open and then try and xlose the
second,
| it gives me a runtime error saying that the callee is unavailable and
all
| connections are closed..
|
|
| Is there any way, by which if the parent is closed,( when the child is
still
| open), i stop the user from closing it or close the child also
| automatically????
|
|
|
|
|
|
|
|