js跳转页面方法整理

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">
原文地址:https://www.cnblogs.com/phpyangbo/p/js-tiaozhuan-page.html