关于 if (document.all) ... 判断是否为ie浏览器
来源:互联网 发布:淘宝能在线订单吗 编辑:程序博客网 时间:2024/05/29 17:40
转自:http://bytes.com/topic/javascript/answers/92525-if-document-all
看到下面一段话:
Microsoft's Internet Explorer has a proprietary property of the documentobject that is called "all".
if (document.all)
tests whether this property is present.
Some believes that the presence of document.all implies that the browser is IE. That is no longer the case, since some other browsers have also implemented it. The only thing you can really assume after such a check, is that document.all exists (or doesn't).
In IE, document.all is an "HTML Collection" containing all elements of the page. You can write document.all['foo'] to get a reference to the element with ID="foo". The offical way to do that is document.getElementById("foo") and it is supported by IE from version 5.
0 0
- 关于 if (document.all) ... 判断是否为ie浏览器
- document.all判断浏览器是否是IE
- 使用document.selection 简单判断浏览器是否为ie核心
- 判断浏览器是否为IE
- 判断是否为IE浏览器
- if (document.all&&document.getElementById) 判断浏览器是否同时支持documnet.getElementById和document.all两种表述方式(方法)
- 判断IE浏览器<!--[if !IE]><!--[if IE]>
- js 简单判断是否为ie浏览器
- js判断是否为IE浏览器
- js判断是否为IE浏览器
- JS判断浏览器是否为IE
- js判断当前浏览器是否为ie
- js判断当前浏览器是否为IE
- js判断是否为IE浏览器
- javascript判断是否为IE浏览器
- 如何判断是否为IE浏览器
- js判断浏览器是否为ie
- JS判断是否为IE浏览器
- ORACLE 中dbms_stats的使用
- 福尔摩斯的便携工具箱发布日志
- 新的放假规定,大年三十还得朝九晚五!
- java 作用域问题
- 对Linux内核栈的认识
- 关于 if (document.all) ... 判断是否为ie浏览器
- Oracle SQL优化 总结
- linux 查看开启的端口
- sdl文字显示
- I want to do that you feel proud of me.
- 国外程序员推荐:每个程序员都应读的书
- do{...}while(0)的意义和用法
- JavaScript学习篇之——初始JavaScript
- jQuery滚动切换传送插件jCarousel使用简介