471,852 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

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 1741
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.