I would like to know if there is a way to detect IE11 and with an IF make the the HTML page use a different style sheet. I don't want to change it one by one, because it's not so professional.
P.S.: I'm not asking a way to detect IE11(unless you do it in a different way :) )
Thanks in advance.
Representation:
var ua = window.navigator.userAgent;
if (ua.indexOf("Trident/7.0") > 0) { //if IE11
//(set the style sheet 1)
}else{
//(set the style sheet 2)
}
<style id="s1">
<!--made for ie11-->
</style>
<style id="s2">
<!--made for google chrome-->
</style>