O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required