js页面的跳转与刷新

一. 页面跳转
window.location="url";
window.location.href="url";
document.location="url";
document.location.href="url";
document.URL="url";
"window.location.href本页面跳转
"parent.location.href" 是上一层页面跳转
"top.location.href" 是最外层的页面跳转
window.top.框架名.location   =   "…… ";
location.reload如何指定target为mainFrame?
mainFrame.location.reload("account_wel.do");

document.forms[0].action="resource_delete.do";
            
document.forms[0].method="POST";
            
document.forms[0].target="blank";
              
document.forms[0].submit();
三.超链接方式打开新窗口
<a href="index.jsp" target="_blank">

四.
window.open("url");
 
 父窗口的刷新
parent.location.reload();

opener.location.reload();

 

上一层页面的刷新

"top.location.reload()":
 
 

javascript调用父窗口(父页面)的方法

window.parentwindow.opener的区别 javascript调用主窗口方法
1
window.parent iframe页面调用父页面对象

2 window.opener window.open 打开的子页面调用父页面对象

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值