Window navigator.platform Property

Definition and Usage

platform The property returns the platform compiled by the browser.

platform The property is read-only.

Instance

Example 1

Get Browser Version:

let platform = navigator.platform;

Try It Yourself

Example 2

Display all navigator properties:

let text = "<p>Browser CodeName: " + navigator.appCodeName + "</p>" +
"<p>Browser Name: " + navigator.appName + "</p>" +
"<p>Browser Version: " + navigator.appVersion + "</p>" +
"<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>" +
"<p>Browser Language: " + navigator.language + "</p>" +
"<p>Browser Online: " + navigator.onLine + "</p>" +
"<p>Platform: " + navigator.platform + "</p>" +
"<p>User-agent header: " + navigator.userAgent + "</p>";

Try It Yourself

Syntax

navigator.platform

Return Value

Type Description
String

Browser Platform.

For example:

  • HP-UX
  • Linux i686
  • Linux armv7l
  • Mac68K
  • MacPPC
  • MacIntel
  • SunOS
  • Win16
  • Win32
  • WebTV OS

Browser Support

All Browsers Support navigator.platform:

Chrome IE Edge Firefox Safari Opera
Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support