js中top.location.href、parent.location.href用法
来源:互联网 发布:如何应聘淘宝模特 编辑:程序博客网 时间:2024/06/05 22:32
本文转自:http://blog.csdn.net/kakaxid/article/details/52624988
window.location.href、location.href是本页面跳转
parent.location.href是上一层页面跳转
top.location.href是最外层的页面跳转
举例说明:
window.location.href、location.href:
例:
parent.location.href:C页面跳转
例:
top.location.href:A页面跳转
例:
在form提交表单的时候有个属性可能对上面的(2)的情况有用target=_top
例2:
也可以直接在表单提交是的target加个即可
: form提交后D页面跳转
: form提交后弹出新页面
: form提交后C页面跳转
window.top.location.href 和 window.location.href 的区别
if (window.location.href == window.top.location.href) { window.top.location.href = “/index.html”; }
top.window.location.reload 中top是什么意思 父框架的对象
比如
阅读全文
0 0
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- js中window.location.href,location.href,parent.location.href,top.location.href的用法
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法 .
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- Imatest破解及安装
- [LeetCode]235. Lowest Common Ancestor of a Binary Search Tree
- HTML5 video标签的poster图片如何填充整个标签区域
- 排序算法(python)-归并排序
- hdu1159最长公共子序列dp
- js中top.location.href、parent.location.href用法
- oracle 查看隐含参数语句
- 在JTable单元格上 加入组件,并赋予可编辑能力 [转] 表格(单元格放置组件)
- Django项目实践(一)工具版本说明及项目的创建
- Java常用基础知识(20个)
- python爬虫进阶(九):基于Page Rank的顺序调整
- Hadoop、Spark系列(一)拨云见雾
- 数据库事务的隔离等级
- 嵌入式Linux下矩阵键盘应用