MDN / DOM (Document Object Model)
MDN / DOM (Document Object Model)
The DOM (Document Object Model) is an that represents and interacts with any or -based markup language document. The DOM is a document model loaded in the and representing the document as a tree, or DOM tree, where each node represents part of the document (e.g., an , text string, or comment).
The DOM is one of the most-used s on the because it allows code running in a browser to access and interact with every node in the document. Nodes can be created, moved, and changed. Event listeners can be added to nodes and triggered on the occurrence of a given event.