
1. html 中使用 meta 中跳转,通过 meta 可以设置跳转时间和页面
<head> <!--只是刷新不跳转到其他页面 --> <meta http-equiv="refresh" content="5"> <!--定时转到其他页面 --> <meta http-equiv="refresh" content="5;url=index.html"> </head>
2. 通过 javascript 中实现跳转
// 直接跳转
window.location.href='index.html';
// 定时跳转
setTimeout("javascript:location.href='index.html'", 5000);
以上就是 html 网页自动跳转代码是什么的详细内容,更多请关注www.mimiwuqi.com的其它相关文章!