网页跳转备忘大大的小蜗牛 收录于 类别 代码 2013-05-12 2013-05-12 约 104 字 预计阅读 1 分钟 目录 OpenAI ChatGPT3.5AI 摘要 Pre-generated by ChatGPT 3.5这篇文章介绍了网页跳转备忘的实现方法,包括HTML和JavaScript的实现。1、html 的实现:1 2 3 4 5 6 <head> <!-- 以下方式只是刷新不跳转到其他页面 --> <meta http-equiv="refresh" content="10"> <!-- 以下方式定时转到其他页面 --> <meta http-equiv="refresh" content="5;url=hello.html"> </head> 2、javascript 的实现:1 2 3 4 5 6 <script language="javascript" type="text/javascript"> // 以下方式直接跳转 window.location.href='hello.html'; // 以下方式定时跳转 setTimeout ("javascript:location.href='hello.html'", 5000); </script> Please enable JavaScript to view the comments powered by giscus.