网页跳转备忘 大大的小蜗牛 收录于 类别 代码 2013-05-12 2013-05-12 约 104 字 预计阅读 1 分钟 条评论 目录 警告本文最后更新于 2013-05-12,文中内容可能已过时。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 Twikoo.