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