Loading new HTML page in Main Window from Popup

I’m using the following code within a popup window link to load a new HTML page in the main window behind it:


The main window refreshes with the new HTML just as it should. The problem is that the popup window loses it’s content and displays the text “alpha_prod.html” instead. I don’t really want to close the popup at this stage. Any ideas?