检测浏览器的更多信息

  1. <html>
  2. <body>
  3. <script type="text/javascript">
  4. document.write("<p>浏览器:")
  5. document.write(navigator.appName + "</p>")
  6.  
  7. document.write("<p>浏览器版本:")
  8. document.write(navigator.appVersion + "</p>")
  9.  
  10. document.write("<p>代码:")
  11. document.write(navigator.appCodeName + "</p>")
  12.  
  13. document.write("<p>平台:")
  14. document.write(navigator.platform + "</p>")
  15.  
  16. document.write("<p>Cookies 启用:")
  17. document.write(navigator.cookieEnabled + "</p>")
  18.  
  19. document.write("<p>浏览器的用户代理报头:")
  20. document.write(navigator.userAgent + "</p>")
  21. </script>
  22. </body>
  23. </html>