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

Get Microsoft Visual Studio 2015 Unleashed, Third 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.