NavigatorUAData: platform property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Note: This feature is available inWeb Workers.
Theplatform read-only property of theNavigatorUAData interface returns the platform brand information.
In this article
Value
A string containing the platform brand.For example,"Windows".
Examples
The following example prints the value ofplatform to the console.
js
console.log(navigator.userAgentData.platform);Specifications
| Specification |
|---|
| User-Agent Client Hints> # dom-navigatoruadata-platform> |
Browser compatibility
See also
- The
Sec-CH-UA-Platformheader (alow-entropy client hint) contains the same information.