`

js实现几秒钟后页面自动跳转到指定页

 
阅读更多
 <html>
      <script language=javascript>
          setTimeout('window.location="http://www.paopaocity.com"',5000)
      </script>
  </html>

 
  location为指定跳转页面的路径,5000为时间,单位毫秒!

 

 

另外还有一种:

 

 在head头部里写meta标签

<head>
        <meta http-equiv="refresh" content="0;URL=http://www.paopaocity.com/">
    </head>

 
content=0 ;   <!--设置本页面停留时间,单位为秒-->
url=http://   <!--将要跳转的页面路径-->

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics