Identify which page is loaded in main frame of a frameset

Discussion in 'Javascript' started by Andrew K, Feb 23, 2005.

  1. Andrew K

    Andrew K Guest

    Hi,
    I am trying to set up a web site using a frameset. There is a
    frame on the right-hand side for the menu (menuFrame), a header frame
    (headFrame) and the main frame (mainFrame) which displays all the
    pages selected from the links in menuFrame.

    I need to know how to identify which page, from the selection in
    menuFrame, is loaded in mainFrame.
     
    Andrew K, Feb 23, 2005
    #1
    1. Advertising

  2. Andrew K

    kaeli Guest

    In article <>,
    enlightened us with...

    > I need to know how to identify which page, from the selection in
    > menuFrame, is loaded in mainFrame.
    >


    Try
    var loc = top.frames['mainFrameName'].document.location.href;

    --
    --
    ~kaeli~
    "No matter what happens, somebody will find a way to take
    it too seriously."
    http://www.ipwebdesign.net/wildAtHeart
    http://www.ipwebdesign.net/kaelisSpace
     
    kaeli, Feb 23, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    678
  2. ck388
    Replies:
    1
    Views:
    584
    ck388
    Sep 24, 2003
  3. Julius Mong
    Replies:
    1
    Views:
    386
    Randy Webb
    May 10, 2004
  4. Jim Cobban
    Replies:
    0
    Views:
    128
    Jim Cobban
    Jul 31, 2005
  5. lev
    Replies:
    1
    Views:
    134
    Thomas 'PointedEars' Lahn
    Sep 10, 2008
Loading...

Share This Page