" code in the head part of the HTML document to automatically refresh the page every x seconds to achieve the effect of continuously refreshing the page."/> " code in the head part of the HTML document to automatically refresh the page every x seconds to achieve the effect of continuously refreshing the page.">

Home  >  Article  >  Web Front-end  >  How to set the html page to refresh the page continuously

How to set the html page to refresh the page continuously

青灯夜游
青灯夜游Original
2021-02-22 10:46:1610594browse

Setting method: You can add the "" code to the head part of the HTML document to automatically refresh the page every x seconds. , to achieve the effect of constantly refreshing the page.

How to set the html page to refresh the page continuously

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

html page keeps refreshing the page

HTML head sets the page automatic refresh function

<meta http-equiv="Refresh" content="2">

The page automatically refreshes once every 2 seconds

<meta http-equiv="X-UA-Compatible" content="ie=edge">

Compatible with Ie

Sample code:




    
    
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Refresh" content="2">
    Document


Hello world

Effect:

How to set the html page to refresh the page continuously

More programming related knowledge , please visit: programming video! !

The above is the detailed content of How to set the html page to refresh the page continuously. 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