O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

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

Working with the Browser Object Model (BOM)

One of the key purposes of JavaScript is to work with the BOM and the DOM. You use these objects to change your application inside the user’s browser. This includes manipulating look and feel, navigating to other pages, modifying content on the page, and more. Let’s start by looking at what you can do with the BOM.

The browser object model is a model of the current browser or tab in which your page is running. You access this model using the object window. This object gives you access to many of the features of the actual browser. For example, the JavaScript code window.print(); will launch the browser’s print dialog from your page. There are many such methods and properties of window—too many to list ...

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