Detect whether browser is IE 7 or lower?

后端 未结 6 2035
萌比男神i
萌比男神i 2020-12-15 07:46

So i am going to add a redirect to my site to toss every one that is using ie 7 or lower off to a different page and came up with this JavaScript, but it seems to have stopp

6条回答
  •  悲&欢浪女
    2020-12-15 08:28

    I've always used Quirks Mode's BrowserDetect.js for my browser detection needs. Check it out - http://www.quirksmode.org/js/detect.html

    Once you've referenced the .js file, you can access lots of information:

    //Browser Name
    BrowserDetect.browser
    //Browser Version
    BrowserDetect.version
    //Operating system
    BrowserDetect.OS
    

提交回复
热议问题