O'Reilly logo

Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition by Tom Negrino, Dori Smith

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

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