How to close a window from some other window
Apr 4th, 2008 21:21
ha mo, Colin Fraser, Surendran Subramanian,
While this seems a simple question there is always issues of who is
doing what to whom without paying, or in other words, who is the parent
window and who is the child window, or who is the master now?
To open a child window try:
if (msgWindow.opener == null) msgWindow.opener = self;
This defines the opener, or describes the relationship between the
parent and the child windows. So far this is pretty much standard, in
the child window put:
This will close the parent window, but will probably cause the close
confirmation prompt before closing the window.