Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close all Children

Status
Not open for further replies.

keithcorbin

Programmer
Jan 24, 2002
19
US
I have a web site that allows the user to open and view reports in multiple windows, the requirement is for unlimited windows. However, when the user logs out of the site all the windows should be closed, cleaning up after them.

I tried one method of creating an array and assigning each new window to the next element in the array.

var x=0;
newWin=new Array();

popWin()
{
while (myWin[x])
{
x++;
}
newWin[x]=window.open('someaddress.com', '');
x++;
}

Then using a similar method to close. This works however, I cannot close these windows from a different page due to the array reference. Any ideas?

-Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top