This article uses five examples to introduce five methods for automatic page Jump in html, if you are interested in html page Jump, learn about it. In the previous article, we introduced three common methods for automatic jump of HTML pages after 3 seconds, this article will continue to introduce you to html page Jump.
The following five examples are provided to describe in detail. The main functions of these examples are as follows: in five seconds, the hello.html file under the same directory will be automatically uploaded (as needed.
1) html implementation
The Code is as follows:
Advantage: simple
Disadvantage: cannot be used in Struts Tiles
2) javascript implementation
The Code is as follows:
Advantage: flexible, can be combined with more other functions
Disadvantage: affected by different browsers
3) combined with the countdown javascript implementation (IE)
The Code is as follows:
5
Advantage: more user-friendly
Disadvantage: firefox does not support (firefox does not support innerText attributes such as span and p)
3) combined with the countdown javascript implementation (firefox)
The Code is as follows:
4) solve the problem that Firefox does not support innerText.
The Code is as follows:
5
5) integration 3) and 3 ')
The Code is as follows:
5
The preceding five examples show you five methods for automatically redirecting pages in HTML.