The window.navigator object contains information about the visitor’s browser.
The window.navigator object can be written without the window prefix.
Some of its properties are tabulated below…
|userAgent||Specifies the user-agent header.||
// simply do
The information from the navigator object can often be misleading, and should not be used to detect browser versions because:
- The navigator data can be changed by the browser owner
- Some browsers misidentify themselves to bypass site tests
- Browsers cannot report new operating systems, released later than the browser