Execution of form On Load

Execution of form On Load

Form On Load function has..

....
alert("hello");
...
alert("goodbye");
...

When the form loads guess which order the alert messages appear? Thats right goodbye then hello. Errrrr?