posted 15 years ago
A JavaScript engine [JavaScript interpreter/JavaScript implementation] interprets JavaScript source code and executes the script at the browser level. There are a few engines out there hence why browsers behave differently.
onload fires when everything is done loading on the page.
Putting a script tag at the end is just firing when it gets to it. The body is not fully built yet, but almost everything is ready to go at that point.
Eric