Yes, scripts can access the properties of other windows in the same domain in which they have a handle (usually obtained through window.open/opener and window.frames / parent). Usually more manageable is calling functions defined in another window, rather than a fiddle with variables directly.
However, windows can die or move on, and browsers deal with it differently when they do it. Make sure that window (a) is still open (! Window.closed) and (b) has the function that you expect to receive before trying to call it.
Simple values, such as strings, are accurate, but it is generally not recommended to pass complex objects such as functions, DOM elements, and closures between windows. If the child window stores an object from its opener, then the opener closes, this object may become "dead" (in some browsers, such as IE), or cause a memory leak. Strange errors may occur.
bobince Sep 17 '08 at 21:17 2008-09-17 21:17
source share