If Browser is Internet Explorer: run an alternative script instead

后端 未结 10 670
后悔当初
后悔当初 2020-11-29 05:11

I\'m using an image carousel script that is quite heavy on the browser. It works great in Opera and Chrome, half decent in FF and absolutely breaks my balls in IE. So i\'d l

10条回答
  •  迷失自我
    2020-11-29 05:59

    Note that you can also determine in pure js in what browser you script is beeing executed through : window.navigator.userAgent

    However, that's not a recommended way as it's configurable in the browser settings. More info available there: https://developer.mozilla.org/fr/docs/DOM/window.navigator.userAgent

提交回复
热议问题