DOM: Document Object Model

From Parallel Library Services
Jump to navigation Jump to search
DOM model, by Birger Eriksson

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.