Chapter 15. The W3C DOM and JavaScript
15.1 The W3C DOM
The W3C DOM provides JavaScript applications a standard way to access all the elements of the document. Although the DOM was designed to help developers navigate an XML document, HTML documents can be navigated in the same way. For JavaScript to change the style of a document dynamically, the HTML elements must be represented as objects. We have already discussed the way JavaScript views the hierarchical tree-like structure of the document object model (DOM Level 0) in Chapter 11, “Working with Forms and Input Devices.” The W3C DOM, starting with DOM 1, expanded the DOM to include every ...
Get JavaScript by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.