Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cosnt ua = window.navigator.userAgent;
- // Detect if is IE10 or IE11
- console.log(/msie\s|trident\//i.test(ua));
- // Detect if is IE10, IE11 or Edge
- console.log(/msie\s|trident\/|edge\//i.test(ua));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement