【问题标题】:Javascript refreshing parent page pop up messageJavascript刷新父页面弹出消息
【发布时间】:2016-09-12 17:02:46
【问题描述】:

我正在使用 JavaScript 来关闭弹出窗口并刷新父页面。当我单击弹出窗口中的“关闭”按钮时,将显示来自 Internet Explorer 的新弹出消息。我们如何通过不显示 Internet Explorer 的弹出消息来克服这个问题。

我不打算上传图片但这是弹出窗口中的消息: "要重新显示网页,网络浏览器需要重新发送您之前提交的信息。

如果您正在购买,您应该点击取消以避免重复交易。否则点击重试再次显示网页”。

请在下面找到我使用的代码:

window.onunload = refreshParent;
function refreshParent() {
window.opener.location.reload();
window.close();
}

【问题讨论】:

    标签: javascript internet-explorer popup


    【解决方案1】:

    改变你的刷新功能

    window.onunload = refreshParent;
    function refreshParent() {
        window.opener.location = window.opener.location.href
        window.close();
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-19
      • 1970-01-01
      • 1970-01-01
      • 2011-10-31
      相关资源
      最近更新 更多