How do I detect what browser is used to access my site?

前端 未结 11 1995
盖世英雄少女心
盖世英雄少女心 2021-01-13 13:51

How do I detect what browser (IE, Firefox, Opera) the user is accessing my site with? Examples in Javascript, PHP, ASP, Python, JSP, and any others you can think of would b

11条回答
  •  执笔经年
    2021-01-13 14:25

    You can do this by:
    - looking at the web server log, OR
    - looking at the User-Agent field in the HTML request (which is a plain text stream) before processing it.

提交回复
热议问题