document.onLoad and difference
by admin on Nov.05, 2008, under Coding
document.onLoad works faster, and apparently, if you put it on a separated .js file, it will refeer only to the .js file itself not the whole html page, while body onLoad will run only when the whole thing is loaded, which is better, for my case it’s the solution since other .js had to load first.
so,
issue:
document.onLoad causes an error (this can only be noticed online when things aren’t loaded instant)
solution:
body onLoad tag among with a little timer to display the div i want.