The brand new navigator target
From IE11+, the fresh new userAgent come back value are a drastic deviation away from most of the older versions’ from Internet explorer. In the IE11 Windows 8 the latest returned string try ” Mozilla/5.0 (Windows NT 6.3; Trident/seven.0; rv:11.0) for example Gecko “. This is exactly distinctive from earlier incarnations to your after the famous suggests:
- Brand new appropriate (“compatible”) and you can web browser (“MSIE”) phrase was got rid of, definition you could not merely get a hold of “MSIE” on the userAgent so you’re able to sniff away Internet explorer into the IE11 otherwise significantly more than internet browsers.
- The newest type of brand new web browser grew to become claimed of the a special update (“rv”) keywords.
You could potentially probe the brand new userAgent assets to have mobile internet explorer like iphone 3gs, ipad, or Android. Another changeable returns real in the event your representative is using you to definitely of the following cellular browsers:
At a glance
Without delay on over dining table, you will be swayed towards the turning to the second a few attributes doing their web browser identification bidding:
Anyway, you’re trying to choose a good browser’s identity and you may type right? Although not, both might mislead your. During the internet browsers such as for instance some versions from Netscape and you may Firefox, those two attributes get back just “Netscape” to possess appName , and you may 5.0 getting appVersion without any further distinction having Firefox as well as type, thus are pretty far inadequate about real world. For example, in both Firefox 5.x and Firefox thirty five, both of these characteristics come back: