Return to Snippet

Revision: 13945
at May 14, 2009 04:12 by 1man

Initial Code
<script type="text/javascript">document.getElementsByTagName('html')[0].className = 'hasJS';</script>

Initial URL

Initial Description
Adds a class of hasJS to the html element, can be used for CSS styling.

Initial Title
Add hasJS class to HTML element

Initial Tags
css, javascript, html

Initial Language