web api instance property
NavigatorUAData: platform property
Limited availabilityAvailable in workers
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
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The
Sec-CH-UA-Platformheader (a low-entropy client hint) contains the same information.