Created
October 6, 2010 18:18
-
-
Save EnotionZ/613831 to your computer and use it in GitHub Desktop.
IE-version sniffing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment