• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Controlling the Browser: The... > About the Navigator Object

About the Navigator Object

The Navigator object is a bit of an anomaly in the JavaScript world. It's not a built-in language object, as are Date, Math, and String, and it's not part of the Window object hierarchy that you'll begin learning about in the next chapter. Instead, the Navigator object sits alone and is happy to do its thing in relative isolation.

What is its thing? To provide you and your scripts with data related to the user's browser. This data includes the name of the browser, the version number, and the operating system on which the program is running. These are all extremely useful tidbits to know because, as you've seen, different browsers and different browser versions support different JavaScript commands and syntax. Being able to discern what the user is running will give your scripts the capability of customizing their execution based on this data.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint