HTML: five methods for automatic page Jump _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
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.

Related Article

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.