Created
July 20, 2012 16:27
-
-
Save debloper/3151684 to your computer and use it in GitHub Desktop.
Feature-detecting old IE version
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
if (!window.addEventListener && !!window.attachEvent) { | |
console.log("IE lt 9"); | |
} else { | |
console.log("IE gte 9"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment