I have an issue with IE where the iframe's "onload/load" events will not fire when I dynamically create the iframe, set its source to a pdf and append it to the document.
The reason I need to listen for the event is because I need to hide the iframe until the frame has loaded and then use some effects to fade it into view.
I've got this to work in every browser I've tested in (Chrome, Firefox, Safari, mobile Safari), but it will not work in IE8->IE11.
I've seen lots of posts about how IE doesn't fire the onload event, and from what I've gathered, the following should be working:
// listen for when the iframe's content has been loaded...
if (window.addEventListener)
iframe.addEventListener("load", framedContentLoaded, false);
else if (window.attachEvent)
iframe.attachEvent("onload", framedContentLoaded);
else
iframe.onload = framedContentLoaded;
However, my function framedContentLoaded never gets fired in IE.
I've created a fiddle that reproduces the issue: http://jsfiddle.net/s5TUU/