NavigatorUAData: platform property
User-Agent Client Hints API
User-Agent Client Hints API
The platform read-only property of the NavigatorUAData interface returns the platform brand information.
Value
A string containing the platform brand.
For example, "Windows".
Examples
The following example prints the value of platform to the console.
console.log(navigator.userAgentData.platform);
Specifications
Browser compatibility
See also
- The Sec-CH-UA-Platform header (a low-entropy client hint) contains the same information.