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

Chapter 22. Understanding the Document O... > Structure of the Document Object

Structure of the Document Object

You learned in Part 4, "Working with Browser Windows," that the Window object refers to the browser window as a whole, or to a frame in a window that has been divided into multiple frames. You'll now move down one level in the JavaScript object model to work with the Window object's document property, which refers to the Document object. As you'll see, this object is extremely powerful because it represents the content displayed within the window or frame. This enables you to get information about the current page (such as its title), change certain aspects of the page (such as the link colors), and write text to the page. I discuss all of these techniques and more in this chapter.

But the Document object's real power lies in its collection of subobjects. I showed you these earlier in the book when I discussed the JavaScript object model, but here's a review of the subobjects available with the Document object:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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