Chapter 9. Browser As Puzzle Box
Previous chapters demonstrated some of the objects, such as
form. This chapter looks at these objects more
closely, as well as the other objects that complete the BOM.
The Structure of the Browser at a Glance
The BOM forms a hierarchy of objects, with objects at each level
accessible via parent objects above them. You can access all of the
elements of the BOM via
which is the topmost element. The next level below features
document, the object used most often in previous examples. The level
also contains the
screen objects. From the
several collections of objects are accessible:
As I demonstrated in Chapter 8,
form object also has collections of
elements as children.
Figure 9-1 shows the BOM at a glance, and how all of these elements relate to each other.
Figure 9-1. Hierarchy of the BOM
An object property can be a single object that may or may not ...