CHAPTER 3

image

The DOM

In this chapter we'll cover the Document Object Model, or DOM. We'll start by addressing what the DOM is and how it has evolved over time. Then we will explore its internal structure and exposed properties and methods in general, followed by a detailed discussion of working with the DOM using JavaScript.

At the end of this chapter you should have a solid understanding of the DOM and its inner workings. You should also have some familiarity with the standards governing it and where to find them, as well as how they evolved. You should understand not only how to handle user events in your scripts, including how to fire them manually, ...

Get JavaScript Programmer's Reference 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.