js detect if internet explorer code example Example: javascript detect internet explorer // Internet Explorer 6-11 const isIE = !!document.documentMode;