-2

I found an old solution online for validating what browser a user is using, and have it display a message: https://github.com/bml3i/browser-validator-js

Unfortunately, the "msie" portion of the code doesn't seem to be working with IE 11. Is there a simple solution I can use in order to display a message to IE 11 users that the webpage will not display correctly on their browser?

Thank you! (◕‿◕✿)

Helene
  • 83
  • 1
  • 1
  • 10

1 Answers1

1

You have a few options

  1. Bowser - Will detect browser, then you can run whatever JS you want (good for triggering something like a modal)
  2. Outdated browser - Probably more than what you're looking for, but may be a good option
  3. CSS only - this works for IE 10 & 11

        @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
            /* Put your IE-only styles here. Works for IE 10 & IE 11*/
        }
    
Ghostrydr
  • 752
  • 5
  • 14