Try combining dispose() or exit() with the window...you could also pass a variable false to set the pop-ups visibility.
What is your code? You could also set your pop-up as listener for an close event. Did you try that one too?
I do not have any BODY in the pop up because the page that is going to be loaded on that pop up is in excel format. Therefore I don't know where to place the code to close unused pop up.
If the user clicks on Open, then only the jsp will be loaded in the excel format on that pop up, else in case of Save and Cancel, the pop up will remain without Body. That is why I could not provide any code for that.
I want to know, can something be done in the opener of that pop up?
Same problem was present in Google Analytics, but here on clicking on Export, a new Browser window is opened, not any pop up.
Thanks