How can I close a popup window when the main window which created the popup is closed or main window moves to another page ? I need to do this thru an event handler.
I am getting a problem with the code. When I close the main window a Windows dilaog box pops up to confirm if I want to close the popup window. On saying 'yes' the focus goes to the popup and it stays open. What could be wrong.