Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Loading a doc into a frame of a window from a second window

    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.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •