What is DOM?

Post Reply
KBleivik
Site Admin
Posts: 88
Joined: Tue Jan 31, 2006 3:10 pm
Location: Moss Norway
Contact:

What is DOM?

Post 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:
Kjell Gunnar Bleivik
Make it simple, as simple as possible but no simpler: | DigitalPunkt.no |

Post Reply