-----040-Navigator.html-----
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 5 <title>标题</title> 6 </head> 7 <body> 8 <h3>浏览器与平台信息</h3> 9 <ol> 10 <script type="text/javascript"> 11 document.write("<li>代号:" + navigator.appCodeName); 12 document.write("<li>名称:" + navigator.appName); 13 document.write("<li>版本:" + navigator.appVersion); 14 document.write("<li>次版本号:" + navigator.appMinorVersion); 15 document.write("<li>语言:" + navigator.language); 16 document.write("<li>系统语言:" + navigator.systemLanguage); 17 document.write("<li>浏览器语言:" + navigator.browserLanguage); 18 document.write("<li>用户语言:" + navigator.userLanguage); 19 document.write("<li>架构:" + navigator.cpuClass); 20 document.write("<li>平台:" + navigator.platform); 21 document.write("<li>用户代理:" + navigator.userAgent); 22 document.write("<li>爪洼支持:" + navigator.javaEnabled()); 23 document.write("<li>数据污点:" + navigator.taintEnabled()); 24 </script> 25 </ol> 26 </body> 27 </html>