Originally Posted by Old Pedant
The onload would have been required if the anonymous functions were, for example, in the <head>. But then, of course, you would have needed to use something other than just onload if there were two.
Fun, isn't it?
BTW: Is there a way to mark the thread as resolved? I cannot find a button for this.