js刷新父窗口的几种方式

来源:互联网 发布:全球地表覆盖数据下载 编辑:程序博客网 时间:2024/04/28 16:52

1、子窗口刷新父窗口

 self.opener.location.reload();
2、以open()方法打开的窗口刷新父窗口

window.opener.location.href=window.opener.location.href;   

3、刷新包含该框架的页面

  parent.location.reload();   

4、刷新以winodw.showModelDialog()方式打开的窗口

    window.parent.dialogArguments.document.execCommand('Refresh');   

 

 

0 0