HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 22nd, 2000, 06:45 PM
thai thai is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 1999
Posts: 4 thai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
  #2  
Old May 31st, 2000, 01:53 AM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
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

Reply With Quote
  #3  
Old May 31st, 2000, 09:36 PM
Spookster Spookster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Posts: 84 Spookster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
You can place the onLoad command in the <frameset onLoad="whatever"> tag

This will activate once both frames load.

Spookster

Reply With Quote
  #4  
Old June 8th, 2000, 08:31 PM
nnh97 nnh97 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 7 nnh97 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to nnh97
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.

Reply With Quote
  #5  
Old June 9th, 2000, 02:20 AM
Spookster Spookster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Posts: 84 Spookster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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


Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > frameset onload?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway