首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

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

2013-07-01 
js实现几秒钟后页面自动跳转到指定页htmlscript languagejavascriptsetTimeout(window.locationht

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://?? <!--将要跳转的页面路径-->

热点排行