What's the easiest way to tell if the browser 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?
views:
448answers:
1That is deprecated and doesn't exist in any version greater than the one you included a link to. Thanks anyway though.
JamesBrownIsDead
2010-02-26 00:52:52
The Browser class *is* in their current docs though. Another quick Google and we have an answer.
Oli
2010-02-26 00:59:35
@JamesBrownIsDead: `Browser.Engine.<engineName><engineVersion>` isn't at ALL deprecated and is infact included in all Mootools versions starting 1.2. It is just generated dynamically instead of generated statically. But if you still believe it is deprecated, use `Browser.Engine.name` and `Browser.Engine.version`. +1 to Oli.
Andrew Moore
2010-02-26 01:25:17
quite, the `Browser` collection in mootools is _entirely_ based upon feature detection and not only is it not being deprecated but it's being added to (things like css3 feature detect, base64 detect, etc) are all plugins you can extend `Browser` with. I think he meant that window.ie6 (from mootools 1.1.1) got deprecated though.
Dimitar Christoff
2010-02-26 02:42:47
His first comment was based on my original answer which did use the deprecated `window.ie6` attribute.
Oli
2010-02-26 08:49:45