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