CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    162

    javascript refreshing parent window in child

    currently have a program which runs in this sequence....

    main window calls a popup window.. in the popup will process n update.
    how can i set to close the window with <a href="javascript:refreshparent(...)">close me </a>

    wanted to refresh the parent and close the child window. i got some code from google search but it doesnt seems to work

    thanks in advance.
    0 error(s), 0 warning(s)

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: javascript refreshing parent window in child

    Just add self.close() to your href attribute.

    Code:
    <a href="javascript:refreshparent(...);self.close()">close me </a>
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Aug 2003
    Posts
    162

    Re: javascript refreshing parent window in child

    thank you~
    0 error(s), 0 warning(s)

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured