Skip to content

Instantly share code, notes, and snippets.

@benjaminoakes
Created September 30, 2022 15:00
Show Gist options
  • Save benjaminoakes/b2e255988e582531ae71da78255ef789 to your computer and use it in GitHub Desktop.
Save benjaminoakes/b2e255988e582531ae71da78255ef789 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script>
let style = document.createElement("style")
style.innerHTML = ".noscript { display: none }"
document.head.appendChild(style)
</script>
</head>
<body>
<p>Normal</p>
<p class="noscript">.noscript class</p>
<noscript>
<p>noscript tag</p>
</noscript>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment