Skip to content

Instantly share code, notes, and snippets.

@350d
Created September 24, 2014 21:58
Show Gist options
  • Save 350d/bae72a551484fdaf353a to your computer and use it in GitHub Desktop.
Save 350d/bae72a551484fdaf353a to your computer and use it in GitHub Desktop.
Internet Explorer Browser Detector ( method that does not depend on the navigator.userAgent )
function isIE() {
return typeof document.documentMode == "number" || eval("/*@cc_on!@*/!1");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment