The information in this article applies to:
SYMPTOMSWhen you insert an IFrame using insertAdjacentHTML, the readyState is not in sync with the download of the document in the new IFrame. If you check the value of document.readyState immediately after the insertAdjacentHTML, the readyState is set to complete, even though the document in the IFrame has not finished loading. STATUSThe behavior is by design. Once a document goes readystate complete, Internet Explorer does not fire onreadystatechange again. MORE INFORMATIONSteps to Reproduce BehaviorHere is HTML code that reproduces the problem. When you press the button, an IFrame is inserted before the end of the body. Then, a message box is displayed to show the value of document.readyState. At this point, document.readyState is set to complete. The readyState should change as the document in the IFrame is downloaded.
REFERENCESFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp Additional query words:
Keywords : kbnokeyword kbIE401 kbIE401sp1 kbIE500dp1 kbIE500 |
Last Reviewed: May 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |