Check whether the browser supports cookie function
<script> if(navigator.cookieEnabled) { document.write("你的浏览器支持cookie功能!"); } else{ document.write("你的浏览器不支持cookie!"); } </script>
Check whether the browser has Java support enabled
<script type="text/javascript"> document.write("navigator对象的方法"+"<br>"); if(navigator.javaEnabled()) { document.write("浏览器支持并启用了Java的方法!"); //提示用户支持Java方法 } else { document.write("浏览器不支持或没有启用Java的方法!"); //提示用户不支持Java方法 } </script>
Current browser information
<script type="text/javascript"> with(document) { write("你的浏览器信息:<ol>"); write("<li>代码:"+navigator.appCodeName); write("<li>名称:"+navigator.appName); write("<li>版本:"+navigator.appVersion); write("<li>语言:"+navigator.language); write("<li>编译平台:"+navigator.platform); write("<li>用户表头:"+navigator.userAgent); } </script>
The above is the entire content of this article, I hope you all like it.