Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
The NavigatorID.appName
property 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
".SyntaxEdit
appName = window.navigator.appName
Value
appName
is the name of the browser as a string.
ExampleEdit
alert(window.navigator.appName);
// shows the name of the browser
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'NavigatorID.appName' in that specification. |
Living Standard | Initial definition |
Browser compatibilityEdit
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |