Window navigator.appName property
- Προηγούμενη Σελίδα appCodeName
- Επόμενη Σελίδα appVersion
- Επιστροφή στο Πρότερο επίπεδο Window Navigator
Definition and Usage
appName
The property returns the browser name.
appName
Properties are read-only.
Tip:For compatibility reasons, all modern browsers return "Netscape".
Instance
Example 1
Get browser name:
let browser = navigator.appName;
Example 2
Display all navigator properties:
let text = "<p>Browser CodeName: " + navigator.appCodeName + "</p>" + "<p>Browser Name: " + navigator.appName + "</p>" + "<p>Browser Version: " + navigator.appVersion + "</p>" + "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>" + "<p>Browser Language: " + navigator.language + "</p>" + "<p>Browser Online: " + navigator.onLine + "</p>" + "<p>Platform: " + navigator.platform + "</p>" + "<p>User-agent header: " + navigator.userAgent + "</p>";
Syntax
navigator.appName
Return value
Type | Description |
---|---|
String | Περιγραφé browser. |
Υποστήριξη Περιηγητών
Όλοι οι περιηγητές υποστηρίζουν navigator.appName
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Υποστήριξη | Υποστήριξη | Υποστήριξη | Υποστήριξη | Υποστήριξη | Υποστήριξη |
- Προηγούμενη Σελίδα appCodeName
- Επόμενη Σελίδα appVersion
- Επιστροφή στο Πρότερο επίπεδο Window Navigator