Navigator: userAgentData property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
TheuserAgentData read-only property of theNavigator interface returns aNavigatorUAData objectwhich can be used to access theUser-Agent Client Hints API.
In this article
Value
ANavigatorUAData object.
Examples
The following example prints the value ofNavigatorUAData.brands to the console.
js
console.log(navigator.userAgentData.brands);Specifications
| Specification |
|---|
| User-Agent Client Hints> # dom-navigatorua-useragentdata> |