關閉時刷新父窗口兩種方法
更新時間: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