I originally posted this as a gist, here. I thought it best to keep my readers informed so that’s why I’m posting it here too: // ---------------------------------------------------------- // A short snippet for detecting versions of IE in JavaScript // without resorting to user-agent sniffing // ---------------------------------------------------------- // If you're not in IE (or IE version is le