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