Document Object Model (DOM)

The Document Object Model (DOM)

The Document Object Model (DOM) is a platform- and language-neutral application programming
interface (API) that will allow programs and scripts to dynamically access and update the content,
structure, and style of both HTML and XML objects. By transforming Web pages into objects, DOM gives
designers control over how their data is used by the applications accessing it.
Programs that support the DOM API allow data to be manipulated by other routines so that those
manipulations can be reused with other DOMs. Taking advantage of solutions already written for DOMs,
programmers can plug any DOM implementation together with any other DOM-based application. The
original example of this came in the form of dynamic-HTML (DHTML) scripts, which could be written to
work properly on all browsers because developers had agreed on a DOM as their standard representation
of the document. The goal, therefore, is to make all DOM implementations interoperable and to be able to
plug and unplug DOM APIs as better components become available without having to recode the base
applications that they are running. The ability to unplug and replace DOMs themselves may become very
useful, as APIs may vary considerably in code size, memory demand, and performance of individual

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License