javascript: How Can a parent window know that its child window closed?
问题 I want to execute a function when an opened child window is closed. Child window opening code is: outWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=600, height=400, top=100, left=100); i want to call a javascript function written in parent window.I am using YUI-2 for developing the plugin. How can i make it work? what event should be registered? thanks in advance. 回答1: You could do