YouTip LogoYouTip

Prop Nav Useragent

# Navigator userAgent Property [![Image 4: Navigator Object Reference](#) 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 The userAgent property is supported by all major browsers. | | | | | | | | --- | --- | --- | --- | --- | --- | | 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 of the above example: User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 [Try it Β»](#) * * * ![Image 5: Example](#) ## More Examples [This example includes all navigator properties.](#) * * Navigator Object](#)
← Met Nav JavaenabledProp Nav Platform β†’