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.