Created
February 19, 2021 19:14
-
-
Save dkvadratu/49a34ca83c02b28ed14523e3838c088f to your computer and use it in GitHub Desktop.
{JS} trick to disable web for IE browsers
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> | |
if (navigator.userAgent.indexOf("MSIE") >= 0) { | |
document.write("<div style='width: 100%; text-align: center; height: 100%; position: fixed; top:0; left:0; right:0; z-index: 99999; background-color: #ffffff; color: #000000;'>Jūs naudojate pasenusią ir nesaugią Internet Explorer naršyklę. Prašome atsinaujinti į Internet Explorer 11 arba naudoti kitą naršyklę.</div>"); | |
document.execCommand("Stop"); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only for Lower than IE 11