[JS] browser progress bar always Loading

Source: Internet
Author: User

[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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.