I think for iframes in Internet Explorer you can't set that event handler (onload) programmatically, you need to specify it in your markup.
Something like:
<iframe id="myFrame" onload="myFunction();"></iframe>
Otherwise IE is just going to ignore the function.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…