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.
The HTML code that gives an image its name looks like this:
<IMG SRC="start.gif" NAME="start">
While the document object is legally part of the window object
window.document), the window object doesn’t
usually have to be explicitly referenced. Thus we reference
For the most part, Netscape and Internet Explorer use ...