The topics that it covers include:
- The DOM and DOM tree structure;
- How to access, traverse, and modify nodes and elements in the DOM;
- How to modify attributes, classes, and styles in the DOM;
- Use events to make interactive, dynamic websites.
Each chapter is self-contained and can be followed independently of the others. However, if you are not yet familiar with the concept of the DOM and DOM tree, it is recommended that you read the introductory chapters first.
This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download Understanding the DOM ebook for free in PDF format (3.4 MB).
Table of Contents
Introduction to the DOM
Understanding the DOM Tree and Nodes
How To Access Elements in the DOM
How To Traverse the DOM
How To Make Changes to the DOM
How To Modify Attributes, Classes, and Styles in the DOM