emily, Neat thing I just invented/discovered:
<style id="if-js-style">.if-js { display: none; }</style> <script>document.getElementById('if-js-style').remove();</script>
Now if you have elements that don't make sense to show with JS disabled (e.g. buttons that trigger js actions) you can put
class="if-js"
on them and they'll only show up when JS is enabled.
Add comment