Last active
July 16, 2019 14:34
-
-
Save crzapata/7eba0c7f8bdcd97a53e1f3b4a4fc7445 to your computer and use it in GitHub Desktop.
Detect IE10 or below
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
<script type="text/javascript"> | |
// Detect IE10 or below | |
if(document.all) { | |
$result = window.confirm('The browser you are using is not compatible with this site. Please update your browser. Press \'ok\' to view browser download options.'); | |
if ($result){ | |
window.location.href = "http://outdatedbrowser.com/en"; | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment