The information in this article applies to:
SYMPTOMSDocumentation mentions that OnReadyStateChange and OnLoad events fire for IFRAME. But the event handler for these events never gets called. This article specifically discusses IFRAME but the information is applicable for FRAME and FRAMESET as well. CAUSEThese events are fired in the context of the document object model of the IFRAME and not in the parent's object model. By the time the IFRAME is loaded, the above events are already fired and ReadyState is complete. You cannot rely on the above property to test whether an IFRAME is loaded. STATUSThis behavior is by design in the versions of Internet Explorer listed at the beginning of the article. MORE INFORMATION
There is no good way to find out if an IFRAME is loaded from its parent. REFERENCESMicrosoft Windows Scripting Technologies Q188763 PRB: document.readyState Not in Sync with Download in IFrame Additional query words: IFRAME onReadyStateChange ReadyState onload
Keywords : kbDHTML kbGrpInet kbDSupport kbIEFAQ |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |