I know that jQuery can’t bind to a file input’s onchange
event. Is it also the case that it can’t bind to an inframe’s onload
event?
With this HTML,
<iframe src="http://jsfiddle.net" onload="alert('js alert');"></iframe>
and this javascript,
$("iframe").live("onload",function(){alert('jq alert');});
I get the alert js alert
, not jq alert
, so jQuery is not binding to the onload
event.
I can’t understand why jQuery cannot bind to the onload
event in time (as ThiefMaster said). Is onload
so different from other events?