首页 > Web开发 > 详细

js跳转页面方法整理

时间:2015-04-30 17:33:13      阅读:260      评论:0      收藏:0      [点我收藏+]

1.window.location.href方式

window.location.href="http://www.zgw8.com";

2.window.navigate方式跳转

window.navigate("http://www.zgw8.com");

3.window.loction.replace方式跳转

window.location.replace("http://www.zgw8.com");

4.self.location方式跳转

self.location=‘http://www.zgw8.com‘;

5.top.location方式跳转

top.location=‘http://www.zgw8.com‘;

6.meta方式实现跳转(content = 3 单位是秒,这个是html方式)

 

<meta http-equiv=refresh content=3;URL="http://www.zgw8.com">

 

js跳转页面方法整理

原文:http://www.cnblogs.com/phpyangbo/p/js-tiaozhuan-page.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!