JavaScript Reference/Javascript Objects/navigator

Материал из Web эксперт
Версия от 18:30, 25 мая 2010; (обсуждение)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"navigator" Example

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



"navigator" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |window                                                        |
+----------------+--------------------------------------------------------------+



"navigator" JavaScript Collections

+----------------+--------------------------------------------------------------+
| JavaScript     |mimeTypes                       plugins                       |
+----------------+--------------------------------------------------------------+



"navigator" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |javaEnabled                     taintEnabled                  |
+----------------+--------------------------------------------------------------+



"navigator" JavaScript Objects

+----------------+--------------------------------------------------------------+
| JavaScript     |userProfile                                                   |
+----------------+--------------------------------------------------------------+



"navigator" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |appCodeName                     appMinorVersion               |
| Properties     |appName                         appVersion                    |
|                |browserLanguage                 cookieEnabled                 |
|                |cpuClass                        language                      |
|                |onLine                          platform                      |
|                |systemLanguage                  userAgent                     |
|                |userLanguage                                                  |
+----------------+--------------------------------------------------------------+



"navigator" Syntax and Note

Note:
Provide information about the browser and the system.
    
Syntax:
    
window.navigator.memberName