Either save variables in the main window to all opened windows,
or a reference in each window to their child window.
One example:
Window A:
var oFirstWin =3D window.open("Window B");
Window B:
window.opener.oSecondWin =3D window.open("Window C");
And then in window A:
<body onUnload=3D"oFirstWin.close(); oSecondWin.close();">
/Robert
-----Original Message-----
From: Greg Griffiths [mailto:greg2@s...]
Sent: den 17 februari 2003 22:42
To: javascript
Subject: [javascript] Windows Question
If I have a Window A, which opens another Window B, which in turn opens
another Window C etc, how can I close B and C when A is closed ?