Last updated 2017 March 15

HTML Document Object Model

The top level node is the document node. W3schools overview of the HTML DOM. Chapter 13 of the online book Eloquent JavaScript by Marijn Haverbeke, discusses the DOM model. Mozilla Foundatation Web technology for developers, and the Web APIs. The complete list of methods and properties.

Example web pages

JavaScript and HTML DOM Reference

The DOM has objects for all HTML elements, attributes, and styles. For events it has actions. Every object can be created, deleted and modified. The complete reference of all objects

Browser objects

Window
represents an open window in a browser
Navigator
info about current browser
Screen
information about the display screen
History
access stored URLS within a window
Location
information about the current URL

HTML DOM Reference

document
Access to all objects in the document. It is in a document node.
HTMLElement
Access to all the HTML elements in the document. Look at the example for insertBefore. It shows that nodes can only be at one location, as the examples moves a list item from one list to another list. Elements are in element nodes.
Attr
Access to all the attributes within the document. Attributes are in attribute nodes
Text
The text in a document. All text is in text nodes
Events
Access to all the events and ability to create new ones.
Style
represents an individual style statement