检测浏览器的更多信息
- <html>
- <body>
- <script type="text/javascript">
- document.write("<p>浏览器:")
- document.write(navigator.appName + "</p>")
-
- document.write("<p>浏览器版本:")
- document.write(navigator.appVersion + "</p>")
-
- document.write("<p>代码:")
- document.write(navigator.appCodeName + "</p>")
-
- document.write("<p>平台:")
- document.write(navigator.platform + "</p>")
-
- document.write("<p>Cookies 启用:")
- document.write(navigator.cookieEnabled + "</p>")
-
- document.write("<p>浏览器的用户代理报头:")
- document.write(navigator.userAgent + "</p>")
- </script>
- </body>
- </html>