window. Navigator
Represents the object of the browser being used.
window. navigator.appcodename
Returns the code name of the browser. "Mozilla" is originally the development Code of Netscape Navigator (the source is monster Godzilla), considering the compatibility of Web pages made for Mozilla, the return value of Internet Explorer is also "Mozilla".
window. navigator.appname
Returns a String representing the browser name.
| Browser |
value |
| Ie |
Microsoft Internet Explorer |
| Chrome |
Netscape |
window. navigator.appversion
Returns a String representing the version number of the browser. Internet Explorer is "< corresponding Mozilla version > (COMPATIBPE; MSIE version of <ie >; < operating system name >) "in the form.
| Browser |
value |
| IE5.5 (Win) |
4.0 (compatible; MSIE 5.01; Windows 98) |
| IE7.0 (Win) |
4.0 (compatible; MSIE 7.0; Windows NT 5.1;. NET CLR 1.1.4322;. NET CLR 2.0.50727;. NET CLR 3.0.4506.2152;. NET CLR 3.5.30729; INFOPATH.3) |
| Chrome16.0 (Win) |
5.0 (Windows NT 5.1) applewebkit/535.7 (khtml, like Gecko) chrome/16.0.912.75 safari/535.7 |
window. navigator.appminorversion
Returns the minor version number of the browser. The property is a read-only string. Only IE is valid.
| Browser |
value |
| IE7.0 (Win) |
0 |
window. navigator.useragent
UserAgent returns a string representing the browser name and version number.
| Browser |
value |
| IE7.0 (Win) |
mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;. NET CLR 1.1.4322;. NET CLR 2.0.50727;. NET CLR 3.0.4506.2152;. NET CLR 3.5.30729; INFOPATH.3) |
| Chrome16.0 (Win) |
mozilla/5.0 (Windows NT 5.1) applewebkit/535.7 (khtml, like Gecko) chrome/16.0.912.75 safari/535.7 |
window. navigator.platform
Returns the string for the browser platform ("Win32", "Win16", "WinCE", "mac68k", "MACPPC", "HP-UX", "SunOS", etc.).
window. navigator.cpuclass
Returns information about the CPU ("x86", "68K", "Alpha", "PPC", etc.). Only IE is valid.
window. navigator.browserlanguage
window. navigator.systemlanguage
window. navigator.userlanguage
Language, Browserlanguage returns the language type of the browser, Systemlanguage returns the language type of the system, Userlanguage returns the language type of the user's environment. Only IE is valid.
Browser status
window. navigator.cookieenabled
Returns the authenticity value of whether the cookie is available.
window. navigator.online
Returns whether the network can be connected to the authenticity value.
window. navigator.javaenabled ()
Returns the authenticity value of whether Java is available.
Other
window. navigator.userprofile
The object that holds the user information. Has addReadRequest () doreadrequest () getattribute () clearrequest () and other methods.
window. navigator.taintenabled ()
Whether the authenticity value of the data can be encrypted. Only IE is valid.
Browser information (Navigator)