DOM: Document Object Model

From Parallel Library Services
Revision as of 11:13, 25 November 2021 by Simon (talk | contribs) (Created page with "thumb|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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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. By using the DOM, programming languages such as JavaScript can traverse the tree and trigger events to happen through user interaction.

Each node has event handlers attached to it, which are executed when triggered by an event, such as a mouse click.