/ Published in: JavaScript
Adds a class of hasJS to the html element, can be used for CSS styling.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript">document.getElementsByTagName('html')[0].className = 'hasJS';</script>