[removed] How to find out if the user browser is Chrome?

后端 未结 15 1750
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 09:41

I need some function returning a boolean value to check if the browser is Chrome.

How do I create such functionality?

15条回答
  •  误落风尘
    2020-11-22 10:32

    var is_chrome = browseris.chrome
    

    or check ather browsers:

    browseris.firefox
    browseris.ie
    browseris.safari
    

    and olso you can check the version like browseris.chrome7up and etc.

    check all existing information in the 'browseris' object

提交回复
热议问题