How to set the html page to refresh the page continuously

青灯夜游
Release: 2023-01-03 09:24:17
Original
10543 people have browsed it

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">
Copy after login

The page automatically refreshes once every 2 seconds

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

Compatible with Ie

Sample code:




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

Hello world

Copy after login

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!