"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"
来源:互联网 发布:javbus2域名发布地址 编辑:程序博客网 时间:2024/05/23 00:02
js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
"window.location.href"、"location.href"是本页面跳转
"parent.location.href"是上一层页面跳转
"top.location.href"是最外层的页面跳转
举例说明:
如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的iframe,如果D中js这样写
"window.location.href"、"location.href":D页面跳转
"parent.location.href":C页面跳转
"top.location.href":A页面跳转
如果D页面中有form的话,
<form>: form提交后D页面跳转
<form target="_blank">: form提交后弹出新页面
<form target="_parent">: form提交后C页面跳转
"window.location.href"、"location.href"是本页面跳转
"parent.location.href"是上一层页面跳转
"top.location.href"是最外层的页面跳转
举例说明:
如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的iframe,如果D中js这样写
"window.location.href"、"location.href":D页面跳转
"parent.location.href":C页面跳转
"top.location.href":A页面跳转
如果D页面中有form的话,
<form>: form提交后D页面跳转
<form target="_blank">: form提交后弹出新页面
<form target="_parent">: form提交后C页面跳转
- location.href、parent.location.href、top.location.href、 window.open
- window.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的用法
- window.location.href、location.href、parent.location.href、top.location.href
- 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"的用法
- 中"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的用法
- 虚函数和纯虚函数的作用与区别
- 第十一章 Hibernate的查询 Hibernate可以使用的查询语言
- HTML中id、name的区别
- Java或Web中解决所有路径问题
- Linux系统分区和挂载浅谈
- "window.location.href"、"location.href"、"parent.location.href"、"top.location.href"
- POJ 2774 : Long Long Message (后缀数组)
- C++获取文本文件字节数的方法
- java oracle 批量插入 邪恶数字"65536",数据丢失问题
- 动态代理
- 记录几款软件
- HttpClient请求Https协议
- LoadRunner性能指标分析
- android获取手机屏幕的宽和高