Created
February 23, 2013 14:57
-
-
Save paulund/5020051 to your computer and use it in GitHub Desktop.
Check for different versions of IE.
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
if(navigator.appVersion.indexOf("MSIE 6.")!=-1) | |
{ | |
// IE 6 code | |
} | |
if(navigator.appVersion.indexOf("MSIE 7.")!=-1) | |
{ | |
// IE 7 code | |
} | |
if(navigator.appVersion.indexOf("MSIE 8.")!=-1) | |
{ | |
// IE 8 code | |
} | |
if(navigator.appVersion.indexOf("MSIE 9.")!=-1) | |
{ | |
// IE 9 code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment