Created
January 2, 2013 22:44
-
-
Save thePunderWoman/4438998 to your computer and use it in GitHub Desktop.
Compatibility mode script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($.browser.msie && ($.browser.version == '7.0' && navigator.userAgent.indexOf('Trident') != -1) || (document.documentMode != undefined && (Number($.browser.version) != Number(document.documentMode)))) { | |
alert("You're in compatibility mode"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment