检测浏览器的信息

Posted on 2012-09-19 11:39  剑竹  阅读(178)  评论(0编辑  收藏  举报

<html>

<body>

<script type="text/javascript">

document.write("<p>Browser: ") ;

document.write(navigator.appName + "</p>");

document.write("<p>Browserversion: ");

document.write(navigator.appVersion + "</p>");

document.write("<p>Code: ") ;

document.write(navigator.appCodeName + "</p>");

document.write("<p>Platform: ");

document.write(navigator.platform + "</p>");

document.write("<p>Cookies enabled: ") ;

document.write(navigator.cookieEnabled + "</p>");

document.write("<p>Browser's user agent header: ") ;

document.write(navigator.userAgent + "</p>") ;

</script>

</body>

</html>

Copyright © 2024 剑竹
Powered by .NET 8.0 on Kubernetes