Window navigator.appCodeName
Example
Get browser code name:
let browser = navigator.appCodeName;
Try it Yourself »
More "Try it Yourself" examples below.
Definition and Usage
The appCodeName
property returns browser code name.
The appCodeName
property is read-only.
Note
For compatibility reasons, all modern browsers returns "Mozilla".
Syntax
navigator.appCodeName
Return Value
Type | Description |
A string | The browser code name. |
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.appCodeName
is supported in all browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |