English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
appNameThis read-only property returns the browser's name.
Note:Do not rely on this property to return the correct browser name. All browsers will return "Netscape" as the value for this property.
Keep this property for compatibility purposes only.
navigator.appName
var x = navigator.appName; document.querySelector("#output").innerHTML = x;Test and See‹/›
All browsers fully support the appName property:
Property | |||||
appName | Yes | Yes | Yes | Yes | Yes |
Return value: | A string representing the browser's name |
---|
This example displays all Navigator properties:
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>"; document.write(txt);Test and See‹/›
Navigator Reference:navigator.appCodeName property
Navigator Reference:navigator.appVersion property
Navigator Reference:navigator.cookieEnabled property
Navigator Reference:navigator.language property
Navigator Reference:navigator.onLine property
Navigator Reference:navigator.platform property
Navigator Reference:navigator.userAgent property