Navigator Object
The userAgent property returns the value of the user-agent header sent by the browser to the server.
![]()
The userAgent property is supported in all major browsers.
The user-agent header sent by your browser:
The output of the code above will be:
All navigator properties in one example
Navigator Object
Your message has been sent to W3Schools.