JavaScript Reference/Javascript Objects/navigator — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 08:22, 26 мая 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