Created
February 14, 2018 14:58
-
-
Save carolina-vallejo/4eb97b8d0fa3a9f01ef0ae237bb8c902 to your computer and use it in GitHub Desktop.
detect ie edge with javascript
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
// detect IE8 and above, and edge | |
if (document.documentMode || /Edge/.test(navigator.userAgent)) { | |
alert('Hello Microsoft User!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment