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.

4

1 回答 1

1
window.onbeforeunload = function() {
    window.opener.functionName();
}
于 2012-12-17T16:19:22.553 回答