MDN self-hosted library · e01.org

NavigatorUAData: platform property

User-Agent Client Hints API

Open notebook · 1 cells web-api-instance-property upstream source

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