检查应用程序的版本号
internet explorer 6 提供了一种检测所支持的应用程序某种版本号的方法;比如:应用程序可以是 xml,html,dom等.版本号是一些小数,如:
1.0, 2.0,或者3.0等。下面就是检测的用法: document.implementation.hasfeature(应用程序名字, 版本号);
例子:
document.implementation.hasfeature("dom", "1.0");或者:
document.implementation.hasfeature("xml", "2.0");如果你运行的是ie6,你可以点击进行检测:"dom" 1.0? "html" 1.0? "xml" 1.0? "html 3.0?然而,由于一些莫名的原因,internet explorer 6 不能够报告检测到支持 dom 1.0 和 html 3.0 的情况!!!