/ Published in: JavaScript
Add a classname of js to the document body to style browsers with javascript enabled differently
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript">document.getElementsByTagName('body')[0].className = 'js';</script>