Targeting Frames on a New Page with Javascript

Discussion in 'JavaScript' started by ktsart, Sep 16, 2009.

  1. #1
    Page 1 has a drop down menu with 9-10 selections on it. All the links point to the same frameset. Based on which link is picked depends on what the bottom frame of the frameset targets. Much like how google images search results work (retaining a frame while the bottom changes). I tried to do this in javascript and here is the code:

    <a href="" onclick='window.open("ExitSet.html","NewSite")' NewSite.mainFrame.location.href="http://www.yahoo.com"> My Link </a>
    Code (markup):
    mainFrame = name of the bottom frame as defined on the frameset.
    ExitSet.html = name of the frameset

    To see what I'm talking about I have a copy of it online. http://www.ktsart.com/SSI/index.html and go to the the 'Illinois' dropdown menu and the option 'AI-Tek Instruments' to see what I'm trying to accomplish.

    I'm stuck, and definitely in over my head.
     
    ktsart, Sep 16, 2009 IP