Navigator userAgentProperty
Navigator Object
Definition and Usage
The userAgent property is a read-only string that declares the value of the user agent header used by the browser for HTTP requests.
Syntax
navigator.userAgent
Browser Support
All major browsers support the userAgent property.
| Chrome | IE | Edge | Firefox | Safari | Opera |
| Yes | Yes | Yes | Yes | Yes | Yes |
Example
Example
The user agent header sent by your browser:
document.write("User Agent:" + navigator.userAgent);
The output result of the above example:
Try it yourself »
More Examples
This example contains all navigator properties.
Navigator Object Other Extensions