" B ":
winb=window.open(blah blah);
window.setTimeout(checkWinB,1000);
function checkWinB() {
if (winb.closed()) refreshMySelf();
else window.setTimeout(checkWinB,1000);
}
"B A":
opener.rerfreshMySelf();
window.close()
refreshMySelf() . , , , AJAX,
function refreshMySelf() {
location.reload();
}
source
share