21.6. Summary

This chapter introduced you to the Document Object Model, its various levels, and how you can use it to manipulate the underlying structure of documents using client-side scripting (JavaScript). You learned how to navigate through the DOM, find nodes of interest, and change the document by manipulating the nodes.

Although the W3C DOM isn't used as much as the DHTML DOM implemented by both major browser developers, the W3C DOM is used by both browser developers and contains much power to manipulate documents using minimal scripting. Chapter 22 delves into Dynamic HTML and the various collections, properties, and methods at the disposal of JavaScript to effect even more changes in your documents.

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP 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.