Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 914373 of DOM

  • Revision slug: Glossary/DOM
  • Revision title: DOM
  • Revision id: 914373
  • Created:
  • Creator: Jeremie
  • Is current revision? Yes
  • Comment

Revision Content

The DOM (Document Object Model) is an {{glossary("API")}} that represents and interacts with any {{glossary("HTML")}} or {{glossary("XML")}} document. The DOM is a document model loaded in the {{glossary("browser")}} and representing the document as a node tree, where each node represents part of the document (e.g. an {{Glossary("element")}}, text string, or comment).

The DOM is one of the most-used {{Glossary("API")}}s on the {{glossary("World Wide Web","Web")}} 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 occurrence of a given event.

DOM was not originally specified—it came about when browsers began implementing {{Glossary("JavaScript")}}. This legacy DOM is sometimes called DOM 0. Today, the W3C leads DOM specification, and the DOM Working Group is currently preparing version 4.

Learn more

General Knowledge

  • {{interwiki("wikipedia", "Document_Object_Model", "The Document Object Model")}} on Wikipedia

Technical information

Revision Source

<p>The DOM (Document Object Model) is an {{glossary("API")}} that represents and interacts with any {{glossary("HTML")}} or {{glossary("XML")}} document. The DOM is a document model loaded in the {{glossary("browser")}} and representing the document as a node tree, where each node represents part of the document (e.g. an {{Glossary("element")}}, text string, or comment).</p>

<p>The DOM is one of the most-used {{Glossary("API")}}s on the {{glossary("World Wide Web","Web")}} 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 occurrence of a given event.</p>

<p>DOM was not originally specified—it came about when browsers began implementing {{Glossary("JavaScript")}}. This legacy DOM is sometimes called DOM 0. Today, the W3C leads DOM specification, and the DOM Working Group is currently preparing version 4.</p>

<h2 id="Learn_more">Learn more</h2>

<h3 id="General_Knowledge">General Knowledge</h3>

<ul>
 <li>{{interwiki("wikipedia", "Document_Object_Model", "The Document Object Model")}} on Wikipedia</li>
</ul>

<h3 id="Technical_information">Technical information</h3>

<ul>
 <li><a href="/en-US/docs/DOM">The DOM documentation on MDN</a></li>
 <li><a href="https://www.w3.org/DOM/DOMTR" rel="external">The various DOM specifications at W3C</a></li>
</ul>
Revert to this revision