JavaScript Reference/Javascript Objects/navigator

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

"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