Skip to content

Instantly share code, notes, and snippets.

@dkvadratu
Created February 19, 2021 19:14
Show Gist options
  • Save dkvadratu/49a34ca83c02b28ed14523e3838c088f to your computer and use it in GitHub Desktop.
Save dkvadratu/49a34ca83c02b28ed14523e3838c088f to your computer and use it in GitHub Desktop.
{JS} trick to disable web for IE browsers
<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>
@dkvadratu
Copy link
Author

Only for Lower than IE 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment