Home > Web Front-end > HTML Tutorial > How to redirect the page in html

How to redirect the page in html

青灯夜游
Release: 2021-12-01 13:35:18
Original
7625 people have browsed it

Jump method: 1. Use meta tag, syntax ""; 2. With the help of js, in script Add "window.location="jump address"" code to the tag to jump.

How to redirect the page in html

The operating environment of this tutorial: windows7 system, javascript1.8.5&&HTML5 version, Dell G3 computer.

html method of redirecting the page

1. Use meta tag

<head>
<meta http-equiv="refresh" content="5; url=https://www.php.cn/">
</head>
Copy after login

How to redirect the page in html

2. With the help of js

<script type="text/javascript">
	window.location = "http://www.baidu.com";
</script>
Copy after login

How to redirect the page in html

Recommended tutorial: "html video tutorial"

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