O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Does the onload event handler get passed an event object too?


A: It does, and it includes information like the target, which is the window object, the time it happened, and the type of the event, which is just the type “load”. It’s safe to say you don’t typically see the event object used much in load handlers because there really isn’t anything that is useful in it for this kind of event. You’re going to find that...


Cover of Head First JavaScript Programming


The "event object" of the "handler" that is assigned to the "onload" "property" of the "target" which is the "window"