<!DOCTYPE html>
<html>
<head>
<title>HTML 跳转示例</title>
<meta charset="UTF-8">
</head>
<body>
<!-- 使用超链接实现页面跳转 -->
<a href="https://www.example.com">点击这里跳转到 example.com</a>
<!-- 使用 JavaScript 实现页面跳转 -->
<button onclick="window.location.href='https://www.example.com'">点击按钮跳转到 example.com</button>
<!-- 使用 meta 标签实现页面自动跳转,5 秒后跳转到 example.com -->
<meta http-equiv="refresh" content="5;url=https://www.example.com">
</body>
</html>
<a> 标签):通过点击链接可以直接跳转到指定的 URL。window.location.href 实现页面跳转。下一篇:html td
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站