[Problem] On the IFRAME page, after dynamically changing the src attribute with JS, the page loading in the framework is complete, but the browser progress bar is still loading.
[Analysis] I have encountered the same problem and cannot solve it for a long time. Many people on the internet attribute this problem to the bug of IE, so I am very helpless. This is not a serious problem, but it is easy to give people the illusion that the page is refreshing.
Microsoft Original article: When you dynamically add an object that contains an attached behavior to a web page, and the behavior must be downloaded, the progress bar in Microsoft Internet Explorer continues to increase. the progress bar continues to show progress even after the behavior is downloaded, and the page is rendered. however, the attached behavior works correctly without any unexpected problems.
【Conclusion]
Microsoft Original: http://support.microsoft.com/default.aspx? SCID = KB; en-US; q320731
• Avoid dynamically inserting any objects that contain attached behaviors.
• Set the message text in the status bar of Internet Explorer after you add the object.
Obviously, the second method is more practical. After downloading the page, write a line of text to the status bar.
For example, if you want to use location. href = "test.htm", add an onload event script in the <body> element of the test.htm file:
Onload = "window. Status = 'finished ';"
I have tried this method, but it still does not work. It may be related to my IE8. Continue to find the reason.