O'Reilly logo

JavaScript by Example, Second Edition by Ellie Quigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. The W3C DOM and JavaScript

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required