The Window as a Complex Object

Chapter 7, “Objects and Object Hierarchies,” covered most of the key properties and methods in the window object. As you saw in the discussion of the HTML hierarchy, at the very top is the window object. However, collected with the window object are other objects, including frames, top, parent, and self.

This chapter examines using and controlling frames within the window object. JavaScript not only can direct commands to other frames within a given window, but it also can pass data back and forth between frames. You can even dynamically create a page within a frame using JavaScript.

The Frame Elements and Attributes

The first order of business is to review the HTML elements and related attributes of a frame. ...

Get JavaScript Design 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.