Chapter 10. Using the navigator, location, and history Objects
In this chapter, we’ll take a look at the navigator
, location
, and history
objects. We’ve seen all these objects before, but we’ll take a look at them in depth here. These objects give you tremendous power in JavaScript. I’ll start with the navigator
object.
The navigator Object
The navigator
object, also called the clientInformation
object in IE4+, refers to the browser itself. In early versions of the Netscape Navigator, the navigator
object actually functioned as the top-level object, although that role has now been taken over by the window
object. As we’ve already seen in earlier ...
Get Inside JavaScript 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.