Web Browser Object Hierarchy and Scoping
Figure 19.1 shows the hierarchy of many of the objects that the Web browser provides and that are accessible to JavaScript. As shown, window is the topmost object in the hierarchy, and the other objects are organized underneath it. Using this hierarchy, the full reference for the value of a text field named text1 in an XHTML form named form1 would be window. document.form1.text1.value.
Figure 19.1. Objects defined by the Web browser are organized in a hierarchy and can be accessed and manipulated by JavaScript.
Because of the object-scoping rules in JavaScript, however, it isn't necessary to specify this ...
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.