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