web api instance property
NavigatorUAData: brands property
Limited availabilityAvailable in workers
The brands read-only property of the NavigatorUAData interface returns an array of brand information.
Value
An array containing the following information for each brand:
brand- : A string containing the brand. For example,
"Google Chrome".
- : A string containing the brand. For example,
version- : A string containing the version. For example,
"91".
- : A string containing the version. For example,
Examples
The following example prints the value of brands to the console.
console.log(navigator.userAgentData.brands);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
Sec-CH-UA(a low-entropy client hint) contains the same information.