...

View Full Version : Loading a doc into a frame of a window from a second window



Sierra467
10-03-2003, 10:42 PM
I have a window with 2 frames in it (A=navigational;B=Content) in which a link in B is selected by the user to produce a popup window through javascript.

Now in the popup window, how do I code a hyperlink in the popup window that when selected, 1) brings the window with the frames in it to the foreground, and 2) changes the url of frame B to different htm file?

Thanks for helping in advance.

Mr J
10-03-2003, 10:49 PM
Please try the following

In the popup window

<a href="#null" onclick="opener.location.href = 'yourpage.htm';opener.parent.focus()">Link</a>

OR

<a href="#null" onclick="opener.parent.framename.location.href = 'yourpage.htm';opener.parent.focus()">Link</a>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum