Skip to content

Instantly share code, notes, and snippets.

@cassdeckard
Created March 25, 2016 11:36
Show Gist options
  • Select an option

  • Save cassdeckard/878d4f8be4ff41050b35 to your computer and use it in GitHub Desktop.

Select an option

Save cassdeckard/878d4f8be4ff41050b35 to your computer and use it in GitHub Desktop.
IE Compatibility Mode test page
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>IE Compatibility Test</title>
</head>
<body>
<h1 id="test-h1"></h1>
<script>
var jsonSupported = (typeof JSON !== 'undefined');
var h1 = document.getElementById('test-h1');
h1.innerText = 'Compatibility mode: ' + (jsonSupported ? 'OFF' : 'ON');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment