• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. The Document Object Model > Web Browser Object Hierarchy and Scopin...

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.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint