Yesterday, I met this problem, using: window.opener.location.reload (); when the parent page is refreshed, when the parent page is submitted, "the page cannot be refreshed" WITHOUT RESENDING THE INFORMATION .... ", change to: window.opener.location.href = window.opener.location.href; window.opener.location.reload (); then no more hate prompt box . But join you to pass the information back, I am afraid you may use window.opener.location.href = window.opener.location.pathname "? X = y"; or modify window.opener.location.search; The last URL is inconsistent with the original inconsistency, the parent page will also refresh (if x = y is a certain value in your code, when you open the sub page again, the URL value will not be modified). But the modified URL is consistent with the original, the parent page will not refresh. If you add window.opener.location.reload (), use: window.opener.location.href = window.opener.location.pathname "? X = y"; window.opener.location.reload () ; Or modify window.opener.location.search; // first window.opener.location.Reload (); // second this parent page will be refreshed. But if the modified URL has changed, the parent page will be refreshed twice. And when you refresh it, you will lose the return information you add, because the URL before modifying is performed.
In summary, if you don't have to return information, you can write it right: window.opener.location.href = window.opener.location.href; window.opener.location.RELOAD (); if you need to return information, Moreover, the message is changed each time, it is simple to modify the window.opener.location.search; but when I need to return the value information, I still can't think of a good method, and the way to change is: Window. Opener.location.href = window.opener.location.href "x = y"; This time every time, X's value will add a y (First time Y, second for yy, three times for YYY ), Then analyze the value of x, take out Y.