I keep running into this generic situation in varioius guises, and need clarification to get it right:
Suppose you have a web page with two buttons. When you click button A, it opens a new window and names it “windowA”. When you click button B, it opens another window and names it “windowB”.
Suppose that window B has a button in it. One of the things that is supposed to happen when this button in pressed is a change to window A, for example, it gets resized, repositioned, or focus is brought to it, or whatever. How does one refer to the name of windowA from inside windowB? Is it “parent.windowA” or “_parent.windowA” or something else, or do you have to give the top window its own name to begin with?
Thanks in advance.