Firefox Tomorrow

web api instance property

NavigatorUAData: platform property

View on MDN ↗

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