refreshing parent window when closing child

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jb61264@yahoo.com

    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.
  • Vincent van Beveren

    #2
    Re: refreshing parent window when closing child

    Yes

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

    good luck,
    Vincent

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: refreshing parent window when closing child

      Vincent van Beveren wrote:[color=blue]
      > Yes[/color]

      No.
      [color=blue]
      > window.onunload = function() {
      > opener.location .reload();
      > }[/color]

      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

      Comment

      Working...