Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. cosnt ua = window.navigator.userAgent;
  2.  
  3. // Detect if is IE10 or IE11
  4. console.log(/msie\s|trident\//i.test(ua));
  5.  
  6. // Detect if is IE10, IE11 or Edge
  7. console.log(/msie\s|trident\/|edge\//i.test(ua));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement