Navigator platform Property

Navigator Object Reference Navigator Object

Example

Get the version of your browser:

var x = "Platform: " + navigator.platform;

The result of x will be:


Try it yourself »

More "Try it Yourself" examples below.


Definition and Usage

The platform property returns for which platform the browser is compiled.


Browser Support

Property
platform Yes Yes Yes Yes Yes

Syntax

navigator.platform

Technical Details

Return Value: A String, representing platform of the browser.

Possible values:
  • HP-UX
  • Linux i686
  • Linux armv7l
  • Mac68K
  • MacPPC
  • MacIntel
  • SunOS
  • Win16
  • Win32
  • WinCE
  • Etc..

Examples

More Examples

Example

A demonstration of all navigator properties in one example:

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

Try it yourself »

Navigator Object Reference Navigator Object

SHARE THIS PAGE

Color Picker

colorpicker