js页面3秒自动跳转

2020-06-16 1605 阅读 0评论

如何让当前页面3秒以后自动跳转到其他页面?JS页面自动跳转

以下三种方式根据自己的需求使用

1、<script   language= "javascript "> SetTimeOut( "this.location.href= '要跳转的页面 ' ",时间多少毫秒) </script>

2、<meta http-equiv="refresh" content="3;URL=http://www.iqicol.com">(这是个好办法)

3、<script>window.setTimeout("location.href='OutBill.asp'",3000);</script>

发表评论

快捷回复: 表情:
Addoil Applause Badlaugh Bomb Coffee Fabulous Facepalm Feces Frown Heyha Insidious KeepFighting NoProb PigHead Shocked Sinistersmile Slap Social Sweat Tolaugh Watermelon Witty Wow Yeah Yellowdog
提交
评论列表 (有 0 条评论, 1605人围观)