469,632 Members | 1,733 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

refreshing parent window when closing child

Is it possible to refresh a parent browser window when a "child"
browser window has been closed using the [X] button in the upper right
corner of the browser?

When I refer to child window, I mean that a link within a "parent"
window has opened a new browser window.
Jul 23 '05 #1
2 1703
Yes

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

good luck,
Vincent

Jul 23 '05 #2
Vincent van Beveren wrote:
Yes
No.
window.onunload = function() {
opener.location.reload();
}


That also fires if the current document is unloaded,
i.e. the user navigates to another document.

Besides, would you please learn how to quote in Usenet?
PointedEars
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by John Dalberg | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.