Accessing another windows variables
-
I have define a variable in window A. I set it to parent.variable=xxxx Now I open a new tab (window B). Can I access or take the parent.variable from window A in window B ?
-
I have define a variable in window A. I set it to parent.variable=xxxx Now I open a new tab (window B). Can I access or take the parent.variable from window A in window B ?
Only if window B can refer to something in A's tree. I think when A spawns B it gets a reference to the new window, so A can add a reference to its own window into B's (i.e. new_window.referenceToA = window), and then code in B can use window.referenceToA.xxx.
-
I have define a variable in window A. I set it to parent.variable=xxxx Now I open a new tab (window B). Can I access or take the parent.variable from window A in window B ?