Back to Content

NavigatorUAData: platform property

files/en-us/web/api/navigatoruadata/platform/index.md

latest688 B
Original Source

{{APIRef("User-Agent Client Hints API")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The platform read-only property of the {{domxref("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.

js
console.log(navigator.userAgentData.platform);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also