Window navigator.platform Property
- Previous Page onLine
- Next Page product
- Go to the Previous Level Window Navigator
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;
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>";
Syntax
navigator.platform
Return Value
Type | Description |
---|---|
String |
Browser Platform. For example:
|
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 |
- Previous Page onLine
- Next Page product
- Go to the Previous Level Window Navigator