What is difference between document.onload and window.onload
is document.onload is same as body onload function
Thanks
Search Result
Collapse
2 results in 0.0040 seconds.
Keywords
Members
Tags
-
Difference between window.onload document.onload
-
document.onload and getElementById() don't cooperate
Hi group,
I stumbled on something strange.
I simplified the problem to this:
A straightforward page with some JS:
<span id="testid">
Hi
</span>
<script type="text/javascript">
function alertID(){
var someID = document.getEle mentById("testi d");
alert (someID);
}
// call it after loading...