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
Check for documentmode - the IE only property:
if (document.documentMode) alert('this is IE');