refreshing parent window when closing child

Discussion in 'Javascript' started by jb61264@yahoo.com, Jun 14, 2004.

  1. Guest

    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.
     
    , Jun 14, 2004
    #1
    1. Advertising

  2. Yes

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

    good luck,
    Vincent
     
    Vincent van Beveren, Jun 14, 2004
    #2
    1. Advertising

  3. 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
     
    Thomas 'PointedEars' Lahn, Jun 25, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2lsZWVzaA==?=
    Replies:
    4
    Views:
    33,918
    =?Utf-8?B?U29sZWwgU29mdHdhcmU=?=
    Oct 14, 2004
  2. =?Utf-8?B?Vk1J?=

    Closing popup window when closing parent window?

    =?Utf-8?B?Vk1J?=, Feb 14, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    656
    Thomas Hansen
    Feb 15, 2007
  3. JohnE
    Replies:
    0
    Views:
    1,164
    JohnE
    Jan 10, 2010
  4. thomas
    Replies:
    0
    Views:
    229
    thomas
    Oct 23, 2003
  5. gokul
    Replies:
    3
    Views:
    730
    Grant Wagner
    Dec 2, 2003
Loading...

Share This Page