Window Navigator对象
txt = "
浏览器代号: " + navigator.appCodeName + "
"+= "浏览器名称: " + navigator.appName + "
"+= "浏览器版本: " + navigator.appVersion + "
"+= "启用Cookies: " + navigator.cookieEnabled + "
"+= "硬件平台: " + navigator.platform + "
"+= "用户代理: " + navigator.userAgent + "
"+= "用户代理语言: " + navigator.systemLanguage + "
""example").innerHTML=txt;浏览器名称: Netscape
<span style="color: #000000;">
启用Cookies: <span style="color: #0000ff;">true<span style="color: #000000;">
浏览器版本:
5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/56.0.2924.87 Safari/537.36<span style="color: #000000;">
启用Cookies: <span style="color: #0000ff;">true<span style="color: #000000;">
硬件平台: Win32
用户代理: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/56.0.2924.87 Safari/537.36<span style="color: #000000;">
用户代理语言: undefined