Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Unsere Freiwilligen haben diesen Artikel noch nicht in Deutsch übersetzt. Machen Sie mit und helfen Sie, das zu erledigen!

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".

Syntax

appName = window.navigator.appName 

Value

appName is the name of the browser as a string.

Example

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

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'NavigatorID.appName' in that specification.
Living Standard Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)

See also

Schlagwörter des Dokuments und Mitwirkende

 Zuletzt aktualisiert von: teoli,