Difference between revisions of "DOM: Document Object Model"
Jump to navigation
Jump to search
(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...") |
|||
Line 1: | Line 1: | ||
[[File:DOM-model.svg|thumb|DOM model, by Birger Eriksson]] | [[File:DOM-model.svg|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 logical tree, with each node representing an object. | 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. | ||
Each node has event handlers attached to it, which are executed when triggered by an event, such as a mouse click. | |||
[[Category:Glossary]] | [[Category:Glossary]] |
Latest revision as of 11:20, 25 November 2021
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.