Archived topic
snippet to dectect Internet exploder 11
7 replies · Started by Edwin on September 18, 2020
This is not a issue with the theme.
I am just hoping something knows the answer to my question.
I am looking for a snippet that will detect internet explorer 11 and will show a message to download a different browser.
Thanks for your help
Hi Edwin,
I believe you can check what browser is in use by parsing User Agent strings.
I'm just not sure what unique string exactly is for IE11.
But I've done a quick search what might work.
The JS in this seems to work.
https://jsfiddle.net/alvaroAV/svvz7tkn/
But you can try other ones like this.
https://stackoverflow.com/questions/19999388/check-if-user-is-using-ie/26678250
Thanks Alvin, but i am more after something like the attached
https://snipboard.io/LFCyET.jpg
Thanks David,
That is exactly what i was looking for, unfortunately it doesn't work on IE11. It will only work with outdated browsers that are one or more version behind. IE11 is the latest and last one.
That plugin uses this:
Which allows you to generate your own rules for the JS script. Simply choose an Edge version in the Edge/IE select box to force IE out.
That is working great.
Thanks for looking in this. Really appreciate it :-)
You're welcome