I am thinking about open a messeage dialog in the main window and close it in the child window.So I am wondering if I can pass the window handler(the message window) to the child window.Is this possible?How could I achieve this?Thanks
@gil_davisJun 12.2004 — #If the window has a NAME, you can create a handle. var pop = window.open("", "windowNameGoesHere"); Note that the URL is not affected by this command.
If I want to open the message window in a button click event and then close it in the body onload event,how can I save the handler in the page?I think global variable won't work because it can't across requests.Thanks
@azure_ssauthorJun 15.2004 — #I mean in the same page,how could you popup the message window before the main window submit and close the popup window after the main window is loaded?Thanks
I use the window.open("","windowname") to get the handler of the named window.But the problem is if the window is already close,this statement will open a blank window which I don't want.How can I check the window's existence by its name? or anyway to suspence(or hide) this blank window to popup?Thanks
@gil_davisJun 16.2004 — #Unfortunately, you can't tell if a window is closed until you have a handle for it. So if you open the window and it does not have the expected URL (pop.window.location.href), then just close it. Or, you could load it with the desired URL.