Skip to content

Instantly share code, notes, and snippets.

@EnotionZ
Created October 6, 2010 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EnotionZ/613831 to your computer and use it in GitHub Desktop.
Save EnotionZ/613831 to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment