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

Get JavaScript: Novice to Ninja now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.