Page 1 of 1

What is DOM?

Posted: Fri Mar 23, 2007 1:48 pm
by KBleivik
A web page is a document and to see that document, you can view it in a browser or you can view the source from the view menu of the browser. The W3c's Document Object Model (DOM) provides an other method to look at the same document. It describes the document content as a set of objects that a JavaScript language can see. Essentially, the DOM provides access to the structure of an HTML page by mapping the elements in that page to a tree of nodes. Each element becomes an element node, and each bit of text becomes a text node. By manipulating this tree, you can create a new (modified) document that can be viewed in your browser.

DOM is an essential element in newer technologies like Java and XML, XSL(T) etc. To understand these technologies, you should have a good understanding of the Document Object Model and how you modify the DOM tree.
Links: