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

    Join Date
    Jul 1999
    Posts
    4
    Rep Power
    0
    Hi,

    Is there an equivalent javascript command for a frameset to execute some javascript code when you first enter the page? For example, for the body tag there's onLoad, for the button tag there's onClick, what about frameset?

    Thanks,
    T.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    81
    Rep Power
    14
    No. Not specifically for frame or frameset. A frame is a window. Use the Window object and the frame name to do what you need to do.

    Russ
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Posts
    84
    Rep Power
    15
    You can place the onLoad command in the <frameset onLoad="whatever"> tag

    This will activate once both frames load.

    Spookster
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    7
    Rep Power
    0
    Dear,

    <frameset onLoad="xx"> only support in IE and are not supported in Netscape 3.x, 4.x and even DOM standard.

    Usually i put a function call statement at the last line before the </body> in the master frame file.

    William Ng.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Posts
    84
    Rep Power
    15
    nnh97, I dont know what book you have been reading but the onLoad event handler in a <frameset> tag is supported in NS. This was implemented in JS1.0 so therefore works in all version of NS2.0 and higher. Second of all you shouldn't even have a body tag in your frameset page.

    Spookster

Similar Threads

  1. Refresh frameset and selective refresh of frame/s
    By AC26 in forum HTML Programming
    Replies: 3
    Last Post: September 15th, 2003, 07:21 PM
  2. Link to open embedded frameset
    By C3P0 in forum HTML Programming
    Replies: 2
    Last Post: January 9th, 2003, 05:58 PM
  3. The 2 frameset files problem
    By clembert in forum HTML Programming
    Replies: 0
    Last Post: April 16th, 2002, 07:05 PM
  4. how to exit a frameset
    By clembert in forum HTML Programming
    Replies: 1
    Last Post: August 24th, 2001, 02:27 PM
  5. onload problem in netscape
    By pavel schloss in forum MySQL Help
    Replies: 2
    Last Post: February 2nd, 2001, 03:26 PM

IMN logo majestic logo threadwatch logo seochat tools logo