jquery 打开页面window.location和window.open的区别
2011-04-15 11:22
459 查看
window.location = "http://www.xxxxxxxx.net" 跳转后有后退功能
其实应该是 window.location.href
window.location.replace("http://www.xxxxxxxx.net") 跳转后没有后退功能
window.open("http://www.xxxxxxxx.net") 要新的窗口打开链接
这个一般用于简单的弹出页面,现在基本上都被屏蔽掉了
window.location.reload();window.location = "/Admin/UserList";window.open("/Admin/UserList");window.location.href = '/Admin/UserList';
window.location.reload()刷新当前页面.
parent.location.reload()刷新父亲对象(用于框架)
opener.location.reload()刷新父窗口对象(用于单开窗口)
top.location.reload()刷新最顶端对象(用于多开窗口)
都是重定向
其实应该是 window.location.href
window.location.replace("http://www.xxxxxxxx.net") 跳转后没有后退功能
window.open("http://www.xxxxxxxx.net") 要新的窗口打开链接
这个一般用于简单的弹出页面,现在基本上都被屏蔽掉了
window.location.reload();window.location = "/Admin/UserList";window.open("/Admin/UserList");window.location.href = '/Admin/UserList';
window.location.reload()刷新当前页面.
parent.location.reload()刷新父亲对象(用于框架)
opener.location.reload()刷新父窗口对象(用于单开窗口)
top.location.reload()刷新最顶端对象(用于多开窗口)
都是重定向
相关文章推荐
- jquery 打开页面window.location和window.open的区别
- javascript 打开页面window.location和window.open的区别
- javascript 打开页面window.location.href和window.open的区别
- javascript 打开页面window.location和window.open的区别
- javascript 打开页面window.location和window.open的区别
- window.location.href,window.open,<a href="/"></a>打开新页面区别
- window.location.href,window.open,<a href="/"></a>打开新页面区别
- window.location与window.open()的区别 "top.location.href"是最外层的页面跳转
- js 中实现页面跳转的方法(window.location和window.open的区别)
- 刷新父页面(window.open打开的页面)
- window.location和window.open的区别[JavaScript]
- location.href、parent.location.href、top.location.href、 window.open实现页面跳转
- window.open 与openwindow.location的区别
- window.location和window.open的区别
- 解决模式对话框和window.open打开新页面Session会丢失问题
- 用window.location和window.open做链接的区别
- window.open打开的窗口关闭后刷新父页面的子页面
- javascript中window.open()与window.location.href的区别
- 刷新父页面(window.open打开的页面)
- window.open打开新页面在google浏览器下的问题