Home  >  Article  >  Web Front-end  >  3 ways to achieve automatic refresh of html pages

3 ways to achieve automatic refresh of html pages

Y2J
Y2JOriginal
2017-05-24 09:33:137111browse

When you create a web page, do you sometimes want your web page to automatically refresh continuously, or automatically jump to another page you set after a period of time? In fact, it is very simple to achieve this effect, and this effect cannot even be called a special effect. You just need to add the following code to your web page.

1. Automatically refresh the page: Add the following code to the area

, where 20 refers to each Refresh the page every 20 seconds.

2. The page automatically jumps: add the following code to the area

, where 20 means jumping to the http://www.jb51.net page after 20 seconds

3. The page automatically refreshes the js version


[Related recommendations]

1. Html free video tutorial

2. The order in which the browser loads and renders HTML

3. Html completes a simple login page

4. Detailed explanation of the relative properties of HTML Path writing method

5. Encoding corresponding to HTML characters

The above is the detailed content of 3 ways to achieve automatic refresh of html pages. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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