NavigatorID.appName

Summary

Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for compatibility reasons.

Note: Do not rely on this property to return the correct browser name. In most browsers (like Firefox, Chrome, Safari, Opera and Internet Explorer) the returned string is "Netscape".

Syntax

appName = window.navigator.appName 
  • appName is the name of the browser as a string.

Example

alert(window.navigator.appName); 
// shows the name of the browser

Specification

This was originally part of DOM Level 0, but has been since included in the HTML5 spec.

Document Tags and Contributors

Last updated by: Ugoku,