I\'m wondering how I could detect if the user viewing my website is using Internet Explorer 11 or below versions with Javascript.
It should be compatible and
Simpler version, returns boolean
function isIE() { return !!window.navigator.userAgent.match(/MSIE|Trident/); }