Click to See Complete Forum and Search --> : Window Refresh


alanwilliams
10-01-2003, 08:23 PM
I want to open a child window(popup) enter data and have it refresh the parent window when it closes. Any ideas?

pyro
10-01-2003, 09:24 PM
Try adding this to the child page:

<script type="text/javascript">
function reloadParent() {
window.opener.location.reload(true);
}
</script>

and then call it with the onunload even of the child page.

alanwilliams
10-01-2003, 09:39 PM
and then call it with the onunload even of the child page.???
I don't understand this part... OnUnload reloadParent() ? in the body properties of the child page? I do appreciate the advice... Thanks.

pyro
10-01-2003, 09:42 PM
Yep, that's about it:

<body onunload="reloadParent();">

should do the trick (as long as this fires when the window is closed -- not positive if it does)