HOUR 4:Working with the Document Object Model (DOM)

What You’ll Learn in This Hour:

• How to access the various objects in the DOM

• Working with windows using the window object

• Working with web documents using the document object

• Using objects for links and anchors

• Using the location object to work with URLs

• Creating JavaScript-based Back and Forward buttons

You’ve reached the end of Part I. In this hour, you’ll be introduced to one of the most important tools you’ll use with JavaScript: the Document Object Model (DOM), which lets your scripts manipulate web pages, windows, and documents.

Without the DOM, JavaScript would be just another scripting language—with the DOM, it becomes a powerful tool for making pages dynamic. ...

Get Sams Teach Yourself JavaScript in 24 Hours 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.