THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Navigator appName Property

Navigator Object Reference Navigator Object

Example

Get the name of your browser:

var x = "Browser Name: " + navigator.appName;

The result of x will be:

Try it Yourself »

More "Try it Yourself" examples below.


Definition and Usage

The appName property returns the name of the browser.

Note: This property is read-only.


Browser Support

Property
appName Yes Yes Yes Yes Yes

Syntax

navigator.appName

Technical Details

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

The returned value varies from different browsers:
  • IE11, Firefox, Chrome and Safari returns "Netscape"
  • IE 10 and earlier versions return "Microsoft Internet Explorer"
  • Opera returns "Opera"

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