[Javascript] Open page in frame from popup window

Rodney Myers rodney at aflyingstart.net
Tue Jul 30 04:08:21 CDT 2002


Or just
window.opener.top.mainFrame.location.href = "whatever.html";
??

Rodney

Peter Brunone wrote:

> Phill,
>
>         First, make sure that when you open the window, you set it to a variable,
> and then assign the opener property in case it wasn't set, e.g.
>
> var newWin = window.open(yadda yadda);
> newWin.opener = top;
>
>         And then in the new window:
>
> window.opener.frames.mainFrame.location.href = "whatever.html";
>
> Regards,
>
> Peter
>
> |-----Original Message-----
> |Behalf Of Phillip Morgan
> |I have a site I'm putting together which is framed. It pops up a small
> |navigation page with links to other pages. I'd like the links in this
> |navigation page to open the selected page in the parent framed site.
> |
> |There are 4 frames on the main page: topleft, navleft, navtop and
> |mainFrame. The links in the popup nav window need to load the linked
> |pages in mainFrame.
> |
> |How can I do this?





More information about the Javascript mailing list