Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Reading Information about the Browser

The navigator object isn't part of the browser object hierarchy, but it is another useful object for scripting. This object contains information about the browser version. You can use this object to find out which browser and computer platform the user is running, and your script can change its behavior to match that browser.

Browser-specific scripting can be complicated, and you'll learn more about the navigator object in Hour 14, "Creating Cross-Browser Scripts."

Share ThisShare This

Informit Network