Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Windows Question


Message #1 by Greg Griffiths <greg2@s...> on Mon, 17 Feb 2003 21:41:44 +0000
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 ?




  Return to Index