::Document Object Model


Document::browser    Object::document    Model::internet    Explorer::level    Layout::object    Browsers::netscape

{{#invoke:Hatnote|hatnote}} {{ safesubst:#invoke:Unsubst||$N=More footnotes |date=__DATE__ |$B= {{#invoke:Message box|ambox}} }} {{#invoke:Sidebar|sidebar | titleclass = navbox-title | title = HTML | headingclass = navbox-abovebelow | contentclass = plainlist | contentstyle = padding-top:0.2em;padding-bottom:0.8em;

| content1 =

| heading2 = Comparisons | content2 =


| navbarstyle = border-top:1px solid #aaa;


Hierarchy of objects in an example HTML DOM—Document Object Model

The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML, and XML documents.<ref name="Introduction">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> The nodes of every document are organized in a tree structure, called the DOM tree. Objects in the DOM tree may be addressed and manipulated by using methods on the objects. The public interface of a DOM is specified in its application programming interface (API).

The history of the Document Object Model is intertwined with the history of the "browser wars" of the late 1990s between Netscape Navigator and Microsoft Internet Explorer, as well as with that of JavaScript and JScript, the first scripting languages to be widely implemented in the layout engines of web browsers.

Document Object Model sections
Intro  Legacy DOM  Intermediate DOM  Standardization  Applications  Implementations  See also  Sources  References  External links