JavaScript and the Document Object Model
Summary and Resources
In this article, you've taken a very basic look at the use of DOM in the JavaScript of a Web page. You can use the same principles anywhere JavaScript is in use, such as within an XSLT style sheet.
The Document Object Model represents elements, text, and other types of nodes within an XML document as a series of parent-child relationships. By manipulating these individual nodes, you can affect the page itself. In addition to DOM Core methods, an XHTML page can also expose properties and methods that are part of the DOM HTML module, which attempts to integrate many of the DHTML properties that programmers have been using for years.
Resources
- Check out the DOM Level 2 Core and DOM Level 2 HTML Recommendations from the W3C.
- Look at the JavaScript binding for the DOM Level 2 Core.
- Read the Understanding DOM tutorial (developerWorks, August 2001).
- Find more XML resources on the developerWorks XML zone.
View JavaScript and the Document Object Model Discussion
Page: 1 2 3 4 5 6 7 8 Next Page: Use DOM in your Web pagesFirst published by IBM developerWorks