If I do an online onload event for embed objects, that seems to work but I can't seem to get the load event working through addEventListener. Is this expected?
+1
A:
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.
kennebec
2009-04-12 01:02:39
A:
could always set like this:
document.getElementById("objectId").onload = funtion(){ ... }
Samuel
2009-04-12 02:09:02
@Geuis already said that works. They are wondering why `addEventListener` doesn't work.
strager
2010-08-13 04:28:22