浏览器嗅探

  |   39 |   Code |   javascript WWW
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>");
Comments
Write a Comment