首页 > 编程知识 正文

js跳转到另一个页面并携带参数隐藏,jsp跳转另一个页面

时间:2023-05-05 00:39:49 阅读:286987 作者:3288

1、本页面跳转:"window.location.href"、"location.href"
2、[color=red]上一层页面跳转:"parent.location.href"[/color]
3、最外层的页面跳转:"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页面跳转
<form target="_top"> : form提交后A页面跳转

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。