New navigator object is actually developed back into the times when Netscape Navigator reined ultimate

New navigator object is actually developed back into the times when Netscape Navigator reined ultimate

The navigator object

From IE11+, the brand new userAgent return really worth is actually a drastic departure regarding every old versions’ away from Web browser. In IE11 Window 8 the latest returned sequence is ” Mozilla/5.0 (Window NT 6.3; Trident/seven.0; rv:11.0) such as Gecko “. This is certainly distinctive from previous versions with the pursuing the known implies:

  • New appropriate (“compatible”) and you can browser (“MSIE”) terms were eliminated, definition you might no further simply pick “MSIE” throughout the userAgent so you can smell aside Ie when you look at the IE11 otherwise above web browsers.
  • The fresh sorts of the latest internet browser became claimed by an alternate change (“rv”) search term.

You can probe the userAgent property to own mobile internet explorer particularly new iphone, ipad, otherwise Android. The next changeable yields genuine whether your user is utilizing that of pursuing the cellular browsers:

At a glance

Instantly at the above table, you happen to be swayed to the looking at the second two features accomplish your own web browser identification putting in a bid:

At all, you are trying to select a good browser’s name and you will type correct? However, they both will likely mislead you. When you look at the internet browsers particularly various models away from Netscape and you can Firefox, both of these services return only “Netscape” for appName , and you can 5.0 for appVersion without the further variation for Firefox and its type, so because of this are very much useless on the real world. Read More