O'Reilly logo

JavaScript: Novice to Ninja by Darren Darren Jones Jones

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 9The Window Object

The window object represents the browser window that contains a web page. It is also used to represent the global object in a browser environment.

In this chapter, we’ll cover these topics:

  • the Browser Object Model

  • finding out browser information

  • browser history

  • controlling windows

  • cookies

  • timing functions

  • Our project ― using cookies to welcome back the user

The Browser Object Model

The Browser Object Model (or BOM for short) is a collection of properties and methods that contain information about the browser and computer screen. For example, we can find out which browser the users are utilising (though, this method is unreliable), the dimensions of their screens, and which pages they have visited before the ...

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