DOM: Document Object Model
Jump to navigation
Jump to search
The Document Object Model is a language-independent interface which treats the structure of HTML and XML files as a logical tree, with each node representing an object. Each node has event handlers attached to it, which are executed when triggered by an event, such as a mouse click. By using the DOM, programming languages such as JavaScript can traverse the tree and trigger events to happen through user interaction.