SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    refresh the parent window.

    Hi.
    WHy doesnt this function refresh the parent window.
    it completes without errors and closes the window, but the parent window from where the popup was launched doesnt refresh. If I 'alert(window.opener.location.href)' it correct shows the the parent url.

    Code JavaScript:
    function refreshParent() {
      window.opener.location.href = window.opener.location.href;
      if (window.opener.progressWindow)		
     	{
      		window.opener.progressWindow.close()
      	}
      window.close();
    }

  2. #2
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no matter, sorted it out with
    top.opener.location.reload();


    Thanks
    Chris


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •