Why does JavaScript navigator.appName return Netscape for Safari, Firefox and Chrome?

后端 未结 4 1133
盖世英雄少女心
盖世英雄少女心 2020-11-30 03:50

Why does navigator.appName return \"Netscape\" for Safari, Firefox and Chrome?

What do they have to do with the old browser Netscape? Could it be becaus

4条回答
  •  一生所求
    2020-11-30 04:24

    One can just search the navigator.userAgent for browser detection for IE 11 now and look for its layout engine. In my experience, it works fairly well. See this post.

提交回复
热议问题