Chapter 9
The Document Object
Key Skills & Concepts
    Defining the Document Object
    Using the Document Object Model
    Using the Properties of the Document Object
    Using the Methods of the Document Object
    Using DOM Nodes
    Creating Dynamic Scripts
image
Now that you know how objects work and how to use predefined JavaScript objects, it is time to look at some of the major predefined objects in JavaScript.
This chapter covers the document object, which helps you to gather information about the page that is being viewed in the browser. As you will find out in this chapter, some of the document object’s properties and methods can be ...

Get JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition 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.