From a parent windows I create a pop-up windows (the child):
onclick=window.open('child_windows.html','popup','width=600,height=300')
On the child window I've got a nifty feature that will update the parent window when I close the child window:
window.onunload = refreshParent;
function refreshParent() {
window.opener.location.reload();
}
This works good. Now I created a link (href) on the child window to a new page, which is still on the same webserver, within the same directory. It's just a new page. Let's say:
<a href=second_page.html>click here</a>
I copied the window.onunload code to this new child window, but when I close this new child window the original parent window does not refresh. Is there any way to achieve this?