I\'ve looked around a lot, and I understand that there\'s a lot of ways to detect internet explorer.
My problem is this: I have an area on my HTML document, that when
If you just want to give users using a MS browser a warning or something, this code should be good.
HTML:
<p id="IE">You are not using a microsoft browser</p>
Javascript:
using_ms_browser = navigator.appName == 'Microsoft Internet Explorer' || (navigator.appName == "Netscape" && navigator.appVersion.indexOf('Edge') > -1) || (navigator.appName == "Netscape" && navigator.appVersion.indexOf('Trident') > -1);
if (using_ms_browser == true){
document.getElementById('IE').innerHTML = "You are using a MS browser"
}
Thanks to @GavinoGrifoni