Chapter 20. Using Windows

What You’ll Learn in This Chapter:

How to access and use the window object hierarchy with JavaScript

How to delay your script’s actions with timeouts

How to display alerts, confirmations, and prompts

Now that you’ve gotten your feet wet with basic JavaScript functionality, let’s return to some specific aspects of the Document Object Model (DOM). In this short chapter, you’ll learn more about some of the structural objects in the DOM—browser windows and dialog boxes—and how JavaScript can interact with them using the events you learned about in Chapter 19, “Responding to Events.”

Controlling Windows with Objects

In Chapter 15, “Working with the Document Object Model (DOM),” you learned that you can use DOM objects ...

Get HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, 2nd 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.