How do I detect IE10 using javascript?

后端 未结 6 1942
离开以前
离开以前 2020-12-14 04:15

As many already posted in other questions (also in jQuery documentation), the old jQuery.browser.version is deprecated and works only in jquery1.3.

Do y

6条回答
  •  执念已碎
    2020-12-14 05:04

    Here is a one line solution to detect IE 10

    var IE10 = navigator.userAgent.toString().toLowerCase().indexOf("trident/6")>-1;
    

    and for more information on other version and browsers please refer this Link of Browser Detection

提交回复
热议问题