Chapter 20. Using Windows and Frames

WHAT YOU’LL LEARN IN THIS CHAPTER:

• How to access and use the window object hierarchy

• How to create new windows with JavaScript

• How to delay your script’s actions with timeouts

• How to display alerts, confirmations, and prompts

• How to build a frameset

• How to link between frames and windows

• How to use JavaScript to work with frames

• How to use inline frames

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 chapter, you’ll learn more about some of the most useful objects in the DOM—browser windows and frames—and how JavaScript can interact with them.

Controlling Windows with Objects

In

Get Sams Teach Yourself HTML, CSS and JavaScript All in One 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.