I'm trying to figure out if it's possible to detect what version of IE you are using, and not your document-mode. It can be server or client-code (doesn't matter), I just need to know what version of IE the user has installed.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Is TWebBrowser dependant on IE version?
- IE dropdown z-index bug
- Multiple cookies with same name
- jQuery: checkbox does not lose focus (blur) [IE]
相关文章
It could be detected in both, by examining the User-Agent string. Note that browsers can spoof their UA string, but this is rarer now than in the past. See this article on MSDN for older UA strings.
Note also that IE8 sends a different UA string in Compatibility mode and in Standards mode (see this and this - both are IE8, although the former says
MSIE 7.0
).See this for a long list of UA strings - note that you should be looking for a pattern, not exact match, as installed software will modify the UA string.
IE9 has some new UA string thing - see the IEBlog for details.
To summarize (and borrow from @EricLaw's comment):
MSIE [0-9].0
string for versionMSIE
is not relevant