O'Reilly logo

HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, Second Edition by Julie C. Meloni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required