Chapter 14

Browser-Based JavaScript

Key Skills & Concepts

   Window: The Global Object

   Using the Properties of the Window Object

   Using the Methods of the Window Object

   Opening New Windows

   JavaScript and Images

   JavaScript and Frames

The JavaScript window object gives you access to more properties and methods you can use in your scripts, and serves as the global JavaScript object in Web browsers. In this chapter, you will see how it works as the global object, and learn to use a number of its properties and methods. You will also learn about how you can use JavaScript with images and frames in a Web browser.

Window: The Global Object

The window object is created for each window that appears in the browser. A window can be ...

Get JavaScript: A Beginner's Guide, Fifth Edition, 5th 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.