var win = window.open("URL", '_blank');
var timer = setInterval(function () {
if (win.closed) {
clearInterval(timer);
window.location.reload();
// Refresh the parent page
}
}, 1000);
}
var timer = setInterval(function () {
if (win.closed) {
clearInterval(timer);
window.location.reload();
// Refresh the parent page
}
}, 1000);
}