When you open the second pop up, you could assign it as the value of a variable on the original parent (the page that will, presumably still be open, Parent1.jsp from your post).
So on Popup1.jsp, when you open Popup2.jsp, you could do it something like:
Code:
window.opener.pop2 = window.open('Popup2.jsp');
That way, even after Popup1.jsp is closed, on Parent1.jsp you can do:
Code:
window.onunload = function(){
if(typeof pop2 != 'undefined')
pop2.close();
}
To close it when Parent1.jsp closes. Opera doesn't usually (maybe never) fire onunload though - just a warning, almost all others do. Also, there will be a fleeting error reported in some browsers if pop2 is already closed. The usual sorts of things (if you are opening and closing pop ups you probably know about them) could be done to prevent that.
Bookmarks