Answer the question
In order to leave comments, you need to log in
How to display a message in IE11 to switch to another browser?
Tried elementary thing in head
<!--[if IE 11]>
<div id="warning">
<h4 class="red" style="color: red;">Your Browser Is Not Supported!</h4><br />
</div>
<![endif]-->
Answer the question
In order to leave comments, you need to log in
The preloader is obviously spinning, because you remove it in JS, and JS code has already fallen into IE11 before this moment. As an option at the very beginning of the JS file, check
function detectIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {
return true;
}
return false;
}
if ( detectIE() ) {
// скрыть прелоадер
// показать некое сообщение пользователю.
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question