Periksa browser Internet Explorer di JavaScript

// Internet Explorer 6-11
const isIE = !!document.documentMode;
Batman