我正在尝试这段代码:
function CloseMe() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
window.opener.progressWindow.close();
window.close();
}
但它无法正常工作。
如何在子窗口关闭后刷新父窗口?
答案 0 :(得分:0)
试用此代码:
function CloseMe() {
window.Parent.location.href = window.Parent.location.href;
if (window.Parent.progressWindow) window.Parent.progressWindow.close();
window.close();
}