What\'s the least error-prone way to target just IE11 with JavaScript?
Note: This should really only be done for analytics or informing the user what browser they\'r
I use the following pattern to target all IE browsers. You can short it down if you only need IE 11.
/msie|trident|edge/g.test(navigator.userAgent.toLowerCase());
Good luck!
Fredrik