posted 18 years ago
Eric,
Thanks, but I don't think that addresses my problem. My main window opens 1 window, which may open a second window (so the main window only opens 1). I may have a session time out , which will load a new page into the active window(either popup1 or popup2) telling the user that they will be logged out. The code I have only closes 1 popup:
funtion logout{
parent.window.reload();
top.window.close();
}
, but if the active window is the 2nd pop up, it just closes that one and returns to the 1st popup. I need a way to tell if which popup I'm in and close 1 or 2 of them and return the focus to the main browser window.
Since the logout message could load in either pop window, the script needs to check if this is the sub window or the sub sub window and I don't know how to do that
TIA,
Brian