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