Entry
How do you refresh a parent window only when a child window is closed?
Sep 20th, 2005 23:19
naveen raj kumar, Joe Higashi, Jean-Bernard Valentaten, Shanan Peters,
In the child windows onUnload-Handler, you write:
opener.location.reload();
Of course IE might bring up a security warning.
HTH,
Jean
==
Strange IE6 behavior
I used this technique and it works for most browsers except IE6. IE
5.5 and others will refresh the parent window when the child is
unloaded
( like when a form gets submitted on the child ) and the parent window
underneath will refresh itself.
However IE6 will not only refresh the parent window but put it on top
of
the child window as well making it look as if the child window has
closed when it's actually now underneath the parent. This is fine if
the
child window DID close, but it is mighty confusing for users if all
they
did was press a button to submit a form. If anyone knows a way around
this I'd love to hear it.
- Ben
/*****************/
-- you can also do it
opener.location.submit();
this will also do the same thing
-- Naveen (Holool)