# Loading new HTML page in Main Window from Popup

**URL:** <https://forum.kirupa.com/t/loading-new-html-page-in-main-window-from-popup/250617>\
**Category:** web dev\
**Created:** [January 31, 2008, 2:56am UTC](https://forum.kirupa.com/t/loading-new-html-page-in-main-window-from-popup/250617 "2008-01-31T02:56:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [January 31, 2008, 2:56am UTC](https://forum.kirupa.com/t/loading-new-html-page-in-main-window-from-popup/250617/1 "2008-01-31T02:56:14Z")

</div>

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

```auto

javascript:parent.opener.parent.location.href='alpha_prod.html'

```

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?
