关闭时刷新父窗口两种方法
更新时间:2014年05月07日 11:35:58 作者:
这篇文章主要介绍了刷新父窗口两种方法,需要的朋友可以参考下
window.opener.location.reload()刷新父窗口
window.opener.location.reload() 与 window.opener.location.href=window.opener.location.href
都是弹出窗口关闭时用来刷新父窗口。
但window.location.Reload 如果有数据提交的动作,会提示是否提交的(是和否选项)
window.opener.location.href=window.opener.location.href 是定向url提交数据,则不会出现是和否
的选择框。
window.opener.location.reload() 与 window.opener.location.href=window.opener.location.href
都是弹出窗口关闭时用来刷新父窗口。
但window.location.Reload 如果有数据提交的动作,会提示是否提交的(是和否选项)
window.opener.location.href=window.opener.location.href 是定向url提交数据,则不会出现是和否
的选择框。
相关文章
JavaScript使用Blob文件流下载txt、pdf、图片等文件,自定义下载文件名
JavaScript使用Blob文件流下载txt、pdf、图片等格式文件,同时自定义下载文件名,2023-08-08
最新评论