Home > Web Front-end > JS Tutorial > Teach you how to remove the IE web page loading progress bar_javascript skills

Teach you how to remove the IE web page loading progress bar_javascript skills

WBOY
Release: 2016-05-16 18:14:14
Original
1315 people have browsed it

Although this has no impact on the function, the experience is not very good. So how to solve this problem? There are many articles on the Internet about setting window.status = "xx" after being loaded by the target page, but I found that this method doesn't work very well in situations like this.

Copy code The code is as follows:









Then add
Copy code The code is as follows:

window.onload = function(){
window.status = "Complete";
}

The result is 1.html After the page is loaded, the progress bar below the browser is still there.
After a long period of repeated practice, I finally found a way to solve the problem: open the page without using an href link. Instead, use Javascript to change the iframe method.
Copy code The code is as follows:




  • < ;a href="redirect('2.html')" target="page">






  • At this point, I thought the problem was solved, but I don’t want the browser to complain again A script error came, indicating that redirect is undefined. Finally, I figured it out. It turned out that I forgot to remove the target attribute.
    At this point, the problem is completely solved. Since it is not convenient in the company, I will post a sample.
    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template