search for: bodyload

Displaying 1 result from an estimated 1 matches for "bodyload".

Did you mean: badload
2006 Jun 16
11
Detecting Body Onload
...code that "waits" for body onload. Every 30ms, it tests $(''body''). Seems that isn''t always good enough. I''ve hit situations where the DOM is "partially" loaded somehow. I fixed matters by setting a global flag... <body onload="bodyLoaded=true;"> which provides a better test... of course I could always <body onload="myEventHandler();"> but I had wanted to keep my HTML markup JS free... Is there a reliable way to test for body loaded and not include an onload handler in the HTML markup? Sam ______...