Referencing Multiple Windows with JavaScript

Just creating a new window with the window.open() method doesn't accomplish that much. Your users can create new windows on their own using their browser menu options. The window shown in Figure 20.1 was created without any of the controls, such as the menu bar. To enable it to be used as a full-fledged Web browser window, it could just as easily have been created with a menu bar, as well as with any of the other window user-interface elements.

To be able to create and use new windows, you must reference them. After you know where a new window fits into the Web browser object hierarchy detailed in Chapter 19, you can use the elements of that hierarchy to manipulate what appears in the new window. ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.