1

Possible Duplicate:
How to run function of parent window when child window closes?

Hi i have a link in a main page. when users click the link, it will open a popup window.
i need to call a javascript function in a main page after close the popup window how to do this?
can any one help me? thanks in advance.

Community
  • 1
  • 1
sivanthi
  • 11
  • 1
  • 6

1 Answers1

1
window.onbeforeunload = function() {
    window.opener.functionName();
}
epascarello
  • 204,599
  • 20
  • 195
  • 236