开发者

JavaScript/MooTools: IE 6?

开发者 https://www.devze.com 2022-12-21 13:01 出处:网络
What\'s the easiest way to tell if the browse开发者_StackOverflowr is an IE 6 version in JavaScript? We\'re using MooTools here and Browser.Engine.trident will be true if it\'s IE, but what about the

What's the easiest way to tell if the browse开发者_StackOverflowr is an IE 6 version in JavaScript? We're using MooTools here and Browser.Engine.trident will be true if it's IE, but what about the version number?


if (Browser.Engine.trident4) alert('is IE6');


Just to keep this up to date. Most current version of Mootools you need:

if (Browser.ie6) alert('is IE6');
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号