I am developing some kind of JavaScript library. And I cause the problem that I have some specific problems for: Browser: IE8 / IE9 and document mode: IE7 I found a solution, but I do not want to use it in all situations and want to use it only when I have the above situation. I know that I can recognize the browser using:
return navigator.userAgent.toLowerCase().indexOf('MSIE 8') > -1;
But I only recognize the browser version in this way, but not the document mode, and I do not want to use my solution when I have, for example, IE8 browser mode and IE 8 document mode. Is there a way to get page document mode in IE? Thanks in advance.
javascript internet-explorer
Mikhail
source share