JavaScript: Can I detect IE9 if it's in IE7 or IE8 compatibility mode?
问题 I need to know if the browser that's identifying itself via user agent string as being IE7 or IE8 is really those browsers, or whether it's IE9 in 7 or 8 compatibility mode. From what I can see in the user agent string, an IE9 in IE7 compatibility mode, provides an identical string to a real IE7. Is there an extra property/element/object that I can test to see if it's "really" IE9 in disguise? I assume the document mode won't help as the page my script is loaded into could either be forcing