子窗口提交后跳转到一个空白页面,此空白页面onload方法里close子窗口,返回特定returnValue。 父窗口此时showModalDialog刚执行完,得到特定returnValue判断后直接刷新,location.href或者重新提交都可以。
[quote=引用 13 楼 cowfishy 的回复:] 引用 9 楼 forgetsam 的回复:子窗口提交后跳转到一个空白页面,此空白页面onload方法里close子窗口,返回特定returnValue。 父窗口此时showModalDialog刚执行完,得到特定returnValue判断后直接刷新,location.href或者重新提交都可以。 这样的话 会不会存在短暂的用户等待时间--close之后 刷新……
引用 6 楼 abcmsnet 的回复: window.opener.location.href=window.opener.location.href;window.close(); window.opener.location.replace(window.opener.document.referrer);window.close(); 这样应该可以吧
window.opener.location.href=window.opener.location.href;window.close(); window.opener.location.replace(window.opener.document.referrer);window.close();
引用 9 楼 forgetsam 的回复:子窗口提交后跳转到一个空白页面,此空白页面onload方法里close子窗口,返回特定returnValue。 父窗口此时showModalDialog刚执行完,得到特定returnValue判断后直接刷新,location.href或者重新提交都可以。 这样的话 会不会存在短暂的用户等待时间--close之后 刷新……
81,092
社区成员
341,717
社区内容
加载中
试试用AI创作助手写篇文章吧