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

Chapter 24. Introduction to DHTML > The Document Object Model

24.5. The Document Object Model

Many of the differences between Netscape DHTML and Internet Explorer DHTML stem from their incompatible implementations of the Document Object Model (DOM). The Document Object Model exposes every element of an HTML page to a scripting language such as JavaScript. Early iterations of the DOM gave scripts access to only some objects on a page such as forms, frames, and images. Internet Explorer 4.0 and Netscape 4.0 have expanded their DOMs and therefore exposed more objects to scripting.

The DOM begins with a base object called the "window," which refers to the browser window itself. Within the window object is the document object (as well as other non-document objects, such as frames). The document object refers to the HTML page itself and everything in it. All of the objects contained within the HTML page, such as images and forms, "branch off" from the original HTML page or document, like branches from a tree trunk.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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