javascript - onload not getting called for object element -
i have object element in html blank data attribute set later upon ajax response. want event when dom object content document ready.
if use onload on object element works in firefox , opera not work in webkit based browser.
how can have onload event trigger in browsers
the html looks this
<object id="myobj" data="" /> the javascript works in ff not in webkit is
e = doc.getelementbyid("myobj") e.onload = function(){} e.data="http://myurl"
in theory onload strictly body element. if browsers allow other elements more power them it's not required.
also: semicolon key broken?
Comments
Post a Comment