I have a widget that I've built that can be embedded anywhere on the web. I've noticed a problem with it on sites that use http-equiv="X-UA-Compatible" content="IE=7" in their header.
This is because I'm using modern javascript which IE7 does not handle well.
Is it possible to override this somehow?
No, you cannot.
If someone has
content=IE7meta tag in their site, then it means that they know that their site does not work in more modern versions of IE. They've specified it explicitly, so they obviously meant it.You can't override this from within your script, and even if you could, what good would it do? You'd break the rest of the site for their sake of making your widget work.
The best you could do is add code to your widget to detect the browser mode or the detect whether features you need are available, and pop an error message into your widget if not so that the owner of the site can see it immediately.