Load events for embedded elements

If I do an online onload event for embedded objects, that seems to work but I can’t seem to get the load event working through addEventListener. Is this expected?

Answer

Probably, but it may be browser dependent.

windows and images and iframes define their load events with addEventListener and attachEvent, but other load events are browser specific.

A script or link element’s onload doesn’t attach in IE, for instance.