window.localtion.href深入理解
来源:互联网 发布:淘宝抢购软件 编辑:程序博客网 时间:2024/06/04 20:00
javascript中的location.href有很多种用法,主要如下。
self.location.href=”/url” 当前页面打开URL页面
location.href=”/url” 当前页面打开URL页面
windows.location.href=”/url” 当前页面打开URL页面,前面三个用法相同。
this.location.href=”/url” 当前页面打开URL页面
parent.location.href=”/url” 在父页面打开新页面
top.location.href=”/url” 在顶层页面打开新页面
如果页面中自定义了frame,那么可将parent self top换为自定义frame的名称,效果是在frame窗口打开url地址
此外,window.location.href=window.location.href;和window.location.Reload()和都是刷新当前页面。区别在于是否有提交数据。当有提交数据时,window.location.Reload()会提示是否提交,window.location.href=window.location.href;则是向指定的url提交数据
转http://www.zhongsisi.com/location-href/
0 0
- window.localtion.href深入理解
- top.localtion.href和top.localtion.replace
- top.location.href和localtion.href有什么不同
- top.location.href和localtion.href有什么不同
- top.location.href和localtion.href有什么不同
- 转 top.location.href和localtion.href有什么不同
- top.location.href和localtion.href有什么不同
- top.location.href和localtion.href有什么不同
- top.location.href和localtion.href有什么不同
- 深入理解Window、WindowManager
- 深入理解window对象
- 深入理解Javascript window对象
- 深入理解Javascript window对象
- 深入理解Javascript window对象
- 深入理解Javascript window对象
- window.location.href"、"location.href"
- window.location.href
- window.local.href编码
- HTTP与HTTPS有何区别
- HDOJ 2023 求平均成绩
- UI - 绘制 - 文字(或者其他控件)阴影效果
- 代理模式(Proxy)—山下的水泥厂
- BM25
- window.localtion.href深入理解
- Centos 6.6 安装python3.4及Django1.9
- C++通过ANE发送中文字符串到AS防止乱码的处理
- JS模态窗口返回值兼容问题解决方案
- 成员变量和属性
- GCD
- Effective C++ 一个简单的 String 类的 Reference Counting 实现(C++)
- event.preventDefault()方法的使用
- 剑指offer系列之二十七:数组中出现次数超过一半的数