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

A summary of detailed insights on how to import CSS

The development history of CSS will not be introd...

js implements the pop-up login box by clicking the pop-up window

This article shares the specific code of js to re...

Small paging design

Let our users choose whether to move forward or ba...

Some conclusions on developing mobile websites

The mobile version of the website should at least...

mysql installer web community 5.7.21.0.msi installation graphic tutorial

This article example shares the specific code for...

js to achieve the effect of dragging the slider

This article shares the specific code of how to d...

Detailed explanation of three ways to connect Docker containers to each other

There are three ways to interconnect and communic...

MySQL data type optimization principles

MySQL supports many data types, and choosing the ...

VUE render function usage and detailed explanation

Table of contents Preface The role of render Rend...

A Brief Analysis of Patroni in Docker Containers

Table of contents Create an image File Structure ...

Docker data volume common operation code examples

If the developer uses Dockerfile to build the ima...

The difference and usage of datetime and timestamp in MySQL

1. How to represent the current time in MySQL? In...

Detailed explanation of Linux kernel macro Container_Of

Table of contents 1. How are structures stored in...