Window navigator.appVersion
Example
Get browser version:
let version = navigator.appVersion;
Try it Yourself »
More examples below.
Definition and Usage
The appVersion
property returns the browser version.
The appVersion
property is read-only.
Syntax
navigator.appVersion
Return Value
Type | Description |
A string | The browser version. |
More Examples
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 »
Browser Support
navigator.appVersion
is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |