keithcorbin
Programmer
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
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