|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
i have a page with an onLoad() function. it gets called automagically when my page is loaded in Netscape 4. in IE4 it does not get called. can someone explain to me the use of this function? also, can someone explain how to make absolutely sure that some function, say test(), is "called before the window's onLoad event handler is called" (quote from The JavaScript Menu Component on developer.netscape.com/docs/examples/index.html?content=dynhtml.html)
|
|
#2
|
|||
|
|||
|
IE does have a tendency to not handle the onload handler very well. You didn't state where you placed your script and your event handler.
The best thing is to place your script containing the test() function between the head tags of your page. The onload is usually best placed WITHIN the body tag. This should solve your problem. Russ |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > onLoad() and IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|