Created
June 8, 2017 18:02
-
-
Save calexandrepcjr/94f16c1eeff89561de4bd8e514a4fa80 to your computer and use it in GitHub Desktop.
The simplest way to validate if javascript's browser is enabled. Put into the head of your page.
This file contains 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
<noscript> | |
<style type="text/css"> | |
body { | |
display: none; | |
} | |
html:after { | |
text-align: center; | |
display: block; | |
font-size: 5rem; | |
color: #FF0000; | |
content: "Enable your javascript to use this site"; | |
} | |
</style> | |
</noscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment