Refreshing a different page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mark.wolfenden

    Refreshing a different page

    Hi

    I have one page which opens a pop-up window. When a button is clicked on the
    pop-up window I want it to close and refresh the page that opened it in the
    first place. Is this possible? I have tried to find a way to do it, but am
    not very proficient with javascript and havent stumbled upon anything.

    Thanks for any help.

    Mark


  • Brian Kerrick Nickel

    #2
    Re: Refreshing a different page

    On Tue, 16 Dec 2003 22:34:57 +0000, mark.wolfenden wrote:
    [color=blue]
    > Hi
    >
    > I have one page which opens a pop-up window. When a button is clicked on the
    > pop-up window I want it to close and refresh the page that opened it in the
    > first place. Is this possible? I have tried to find a way to do it, but am
    > not very proficient with javascript and havent stumbled upon anything.
    >
    > Thanks for any help.
    >
    > Mark[/color]

    The window that opens a popup (via JS) is known as window.opener, so to
    refresh that page, you just need to do:
    if( window.opener ) window.opener.l ocation.reload( );

    Then closing the current window is:
    window.close( );

    Comment

    Working...