Created
December 29, 2010 18:47
-
-
Save kaievns/758876 to your computer and use it in GitHub Desktop.
IE < 9 check
This file contains hidden or 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
function is_IE8_or_less() { | |
try { | |
document.createElement('<input/>'); | |
// IE8 or less | |
return true; | |
} catch(e) { | |
// IE9 or a W3C browser | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment