Window Navigator对象

前端之家收集整理的这篇文章主要介绍了Window Navigator对象前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Window Navigator对象

txt = "

浏览器代号: " + navigator.appCodeName + "

"+= "

浏览器名称: " + navigator.appName + "

"+= "

浏览器版本: " + navigator.appVersion + "

"+= "

启用Cookies: " + navigator.cookieEnabled + "

"+= "

硬件平台: " + navigator.platform + "

"+= "

用户代理: " + navigator.userAgent + "

"+= "

用户代理语言: " + navigator.systemLanguage + "

""example").innerHTML=txt;
浏览器名称: Netscape

浏览器版本: 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

 

猜你在找的JavaScript相关文章