With the code below, I’m unable to alert users to using only IE11 and any other browser but not lower versions of IE starting IE 10. How can I refine my jQuery to achieve it?
jQuery(document).ready(function($){
var isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
// true on IE11
// false on Edge and other IEs/browsers. filters.hide();
// Objective: Allow only IE 11 and other browsers like Edge, Chrome, Safar, firefox so on,
// but never all lower versions of IE starting IE 10.
if (isIE11 === FALSE) {
alert("Your web browser is out of date. Please complete this form using an approved browser,
such as Edge, Chrome, Safari, or Firefox.");
}
});