EnotionZ
10/6/2010 - 6:18 PM

IE-version sniffing

IE-version sniffing

// capture x.x portion and store as a number, returns NaN if not IE
var IE = /MSIE (\d+\.\d+);/.test(navigator.userAgent) ? parseFloat(RegExp.$1) : NaN;