Implementing timed page refresh or redirect based on meta

Implementing timed page refresh or redirect based on meta

Use meta to implement timed refresh or jump of the page

XML/HTML CodeCopy content to clipboard
  1. < meta   http-equiv = "refresh"   content = "5" >      

This means that the current page is refreshed every 5 seconds. Refresh~

XML/HTML CodeCopy content to clipboard
  1. < meta   http-equiv = "refresh"   content = "2; url = '/'" >    

This means that the current page will jump to the home page after 2 seconds~

XML/HTML CodeCopy content to clipboard
  1. < meta   http-equiv = "refresh"   content = "0; url = 'http://www.qq.com/'" >    

The page jumps directly to Tencent.com~

The above is the relevant knowledge about how to implement timed refresh or jump of pages based on meta that I introduced to you. I hope it will be helpful to you!

<<:  Summary of seven MySQL JOIN types

>>:  Analysis and application of irregular picture waterfall flow principle

Recommend

Several skills you must know when making web pages

1. z-index is invalid in IE6. In CSS, the z-index...

Learn more about using regular expressions in JavaScript

Table of contents 1. What is a regular expression...

Detailed explanation of MySQL user and permission management

This article uses examples to describe the manage...

JavaScript custom plug-in to implement tab switching function

This article shares the specific code of JavaScri...

Sample code for implementing a background gradient button using div+css3

As the demand for front-end pages continues to in...

Detailed explanation of MySQL 8.0.18 commands

Open the folder C:\web\mysql-8.0.11 that you just...

Vue implements scroll loading table

Table of contents Achieve results Rolling load kn...

...

Vertical and horizontal splitting of MySQL tables

Vertical Split Vertical splitting refers to the s...

JS implements simple example code to control video playback speed

introduction I discovered a problem before: somet...

MySql 8.0.16-win64 Installation Tutorial

1. Unzip the downloaded file as shown below . 2. ...

Small problem with the spacing between label and input in Google Browser

Code first, then text Copy code The code is as fol...

MySQL 8.0.17 installation graphic tutorial

This article shares with you the MySQL 8.0.17 ins...

Limit input type (multiple methods)

1. Only Chinese characters can be input and pasted...