Chapter 7. Working with Browser Windows

The window is the most important interface element in a Web browser, and as you might expect, JavaScript provides you with many tools to manipulate windows.

JavaScript deals with windows in ways similar to that of frames (see Chapter 6). This makes perfect sense, since frames are just other document windows within the overall browser window.

In this chapter, you'll learn how to use JavaScript to open and close, scroll, update, and position windows, and create windows that you can use as control panels. You'll see how you can use JavaScript to write information into windows, so you can build a Web page on the fly. You'll also learn how to make events happen when a window loads, a technique you'll use often. ...

Get Javascript for the World Wide Web: Visual Quickstart Guide, Fifth 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.