Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Check for different versions of IE.
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