The latest navigator object are conceived back into the changing times whenever Netscape Navigator reined best

The latest navigator object are conceived back into the changing times whenever Netscape Navigator reined best

The new navigator target

From IE11+, new userAgent get back well worth try a drastic departure from all elderly versions’ out-of Ie. During the IE11 Screen 8 the newest came back string are ” Mozilla/5.0 (Window NT six.3; Trident/eight.0; rv:eleven.0) such Gecko “. This will be distinctive from earlier incarnations towards pursuing the distinguished ways:

  • The latest suitable (“compatible”) and you may internet browser (“MSIE”) phrase have been got rid of, definition you could potentially no longer just come across “MSIE” regarding userAgent so you can sniff away Ie within the IE11 or more than web browsers.
  • The newest form of the fresh internet browser happens to be advertised of the a new improve (“rv”) keywords.

You can probe new userAgent possessions getting mobile internet explorer particularly new iphone, apple ipad, or Android. The following variable yields real whether your user is utilizing you to definitely of your following cellular browsers:

Immediately

Instantly in the more than table, you happen to be influenced towards the looking at next two attributes doing their browser detection bidding:

At all, you’re trying to locate an effective browser’s name and you can variation correct? But not, both of them might misguide your. During the internet explorer including some products from Netscape and you may Firefox, both of these services get back just “Netscape” having appName , and you will 5.0 getting appVersion without having any further change having Firefox and its version, and hence are pretty far ineffective about real life.