[Javascript]浏览器嗅探

  • 378 字
  • 次阅读

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
document.writeln("Useragent="+window.navigator.userAgent+"<br>");
document.writeln("浏览器原型="+window.navigator.appName+"<br>");
document.writeln("浏览器代码名="+window.navigator.appCodeName+"<br>");
document.writeln("浏览器平台及版本信息="+window.navigator.appVersion+"<br>");
document.writeln("浏览器语言="+window.navigator.language+"<br>");
document.writeln("是否开启cookies="+window.navigator.cookieEnabled+"<br>");
document.writeln("CPU等级="+window.navigator.cpuClass+"<br>");
for(i=0;i<window.navigator.plugins.length;i++){
document.writeln("插件"+i+"="+window.navigator.plugins[i].name+"<br>");
document.writeln("插件信息"+i+"="+window.navigator.plugins[i].description+"<br>");}
document.writeln("是否处于联网模式="+window.navigator.onLine+"<br>");
document.writeln("系统默认语言="+window.navigator.systemLanguage+"<br>");
document.writeln("软件平台="+window.navigator.platform+"<br>");
document.writeln("系统设置语言="+window.navigator.userLanguage+"<br>");
document.writeln("当前浏览器页面编码:"+document.characterSet+"<br>");
打赏
打赏提示信息
分享
分享提示信息