|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
You can place the onLoad command in the <frameset onLoad="whatever"> tag
This will activate once both frames load. Spookster |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > frameset onload? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|