JavaScript Reference/Javascript Objects/navigator
Версия от 18:30, 25 мая 2010; (обсуждение)
Содержание
<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