JS Basic
JS Objects
JS Advanced
| JS Browser |
|
The Navigator object contains information about the visitor's browser. Browser DetectionAlmost everything in this tutorial works on all JavaScript-enabled browsers. However, there are some things that just don't work on certain browsers - especially on older browsers. Sometimes it can be useful to detect the visitor's browser, and then serve the appropriate information. The best way to do this is to make your web pages smart enough to look one way to some browsers and another way to other browsers. The Navigator object contains information about the visitor's browser name, version, and more.
The Navigator ObjectThe Navigator object contains all information about the visitor's browser: Example<html> |
JS Browser
Note: There is no public standard that applies to the navigator object, but all major browsers support it.