#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Hong Kong
    Posts
    73
    Rep Power
    15
    i have a page which has 3 frames
    HeaderFrame, ContentFrame, FooterFrame

    a file in FooterFrame, eg. file01.html
    it will check whether it is now in FooterFrame or not.

    how do u do it
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    81
    Rep Power
    14
    Although we all refer to a frame as an object, it isn't. A frame is an instance of the window object, thus has all of the same properties and methods of the window object.

    So, window.frames.name or frame.name should give you the name of the frame you are in. You should then be able to compare that to what you are expecting.

    if(frame.name = 'footerframe')
    {do this}
    else
    {do that}

    Russ

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by ccm:
    i have a page which has 3 frames
    HeaderFrame, ContentFrame, FooterFrame

    a file in FooterFrame, eg. file01.html
    it will check whether it is now in FooterFrame or not.

    how do u do it
    [/quote]

Similar Threads

  1. How to resize frame according to screen resolution???
    By skuba in forum HTML Programming
    Replies: 10
    Last Post: January 5th, 2004, 05:51 PM
  2. checkbox assistance needed
    By linhardt in forum HTML Programming
    Replies: 6
    Last Post: October 2nd, 2003, 12:19 PM
  3. Creating a Check All check box, that doesnt select all!
    By fr0styxm in forum HTML Programming
    Replies: 22
    Last Post: August 29th, 2003, 08:14 AM
  4. Remebering checked check boxes?
    By bapolis in forum PHP Development
    Replies: 7
    Last Post: August 9th, 2002, 12:52 AM
  5. Replies: 0
    Last Post: February 28th, 2002, 03:12 PM

IMN logo majestic logo threadwatch logo seochat tools logo