I noticed when using the Google Chat feature from your Google Mail that you can pop out a chat into its’ own window. Then when I went to close the Google Mail window it warned that other windows would also be closed if I continued and then showed a list of the windows. How is this done? Is it possible to track whether a window you invoked has been closed?
Share
Yes, when you do a window.open in JavaScript, you can set it to a var like:
Then you could bind events to that window like:
You could keep track of multiple pop-up windows by putting them into an array.
You can also call JavaScript functions in the parent window by the child (pop-up) window using: