JavaScript Reference/Javascript Objects/navigator
Содержание
<html>
<head>
<script language="JavaScript">
function function1() {
var m = navigator.appName;
alert("The name of your browser is "+"""+m+""");
}
</script>
</head>
<body >
<input type="button" value="Click here" onClick="function1();">
</body>
</html>
+----------------+--------------------------------------------------------------+
| Applied_To |window |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| JavaScript |mimeTypes plugins |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| JavaScript |javaEnabled taintEnabled |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| JavaScript |userProfile |
+----------------+--------------------------------------------------------------+
+----------------+--------------------------------------------------------------+
| JavaScript |appCodeName appMinorVersion |
| Properties |appName appVersion |
| |browserLanguage cookieEnabled |
| |cpuClass language |
| |onLine platform |
| |systemLanguage userAgent |
| |userLanguage |
+----------------+--------------------------------------------------------------+
Note:
Provide information about the browser and the system.
Syntax:
window.navigator.memberName