THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Navigator appCodeName Property

Navigator Object Reference Navigator Object

Example

Get the code name of your browser:

var x = "Browser CodeName: " + navigator.appCodeName;

The result of x will be:

Try it Yourself »

More "Try it Yourself" examples below.


Definition and Usage

The appCodeName property returns the code name of the browser.

Note: All modern browsers returns "Mozilla", for compatibility reasons.

Note: This property is read-only.


Browser Support

Property
appCodeName Yes Yes Yes Yes Yes

Syntax

navigator.appCodeName

Technical Details

Return Value: A String, representing the code name of the browser

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