iframe中的各种跳转方法
来源:互联网 发布:dnf深度优化启动加速 编辑:程序博客网 时间:2024/04/30 07:36
一、背景
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页面跳转
三、链接或者form
D页面中有form
<form>: form提交后D页面跳转
<form target="_blank">: form提交后弹出新页面
<form target="_parent">: form提交后C页面跳转
<form target="_top"> : form提交后A页面跳转
四、刷新
parent.location.reload():C页面刷新
window.opener.document.location.reload():C页面刷新(使用子窗口的opener对象来获得父窗口对象)
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页面跳转
三、链接或者form
D页面中有form
<form>: form提交后D页面跳转
<form target="_blank">: form提交后弹出新页面
<form target="_parent">: form提交后C页面跳转
<form target="_top"> : form提交后A页面跳转
四、刷新
parent.location.reload():C页面刷新
window.opener.document.location.reload():C页面刷新(使用子窗口的opener对象来获得父窗口对象)
top.location.reload():A页面刷新
五、struts2中跳转问题解决方法
先跳转到空白页面,再进行跳转
<script>
top.window.document.location.href="login.jsp";
</script>
0 0
- iframe中的各种跳转方法
- iframe中的各种跳转方法
- iframe中的各种跳转方法
- iframe中的各种跳转方法
- iframe中的各种跳转方法
- iframe中的各种跳转方法(转)
- 在iframe页面跳转的各种方法
- iframe的跳转方法
- iframe的跳转方法
- iframe的跳转方法
- iframe 跳转方法
- iframe的跳转方法_js
- iframe的跳转方法_javascript_js
- iframe的跳转方法_javascript_js
- JSP中的各种跳转
- 汇编中的各种跳转指令
- JavaScript使iframe的跳转方法
- 页面跳转的各种方法
- android布局优化 笔记
- NLP 迷思之四:词义消歧(WSD)是NLP应用的瓶颈
- 第一次接触Weblogic遇到的问题
- C++函数之递归调用
- 无模式数据库NoSQL讲解
- iframe中的各种跳转方法
- 欢迎使用CSDN-markdown编辑器
- busybox编译问题
- qtp遇到的问题及解决
- canvas 组合 类型 简单 描述
- google hack
- Ubuntu12.04 root用户登录设置
- 解决Vim使用Winmanager插件时自动启动与自动退出方法
- 马虎的算式