Posted By

satonthat on 03/18/10


Tagged

javascript


Versions (?)

Add classname to the body using Javascript


 / Published in: JavaScript
 

  1. <script type="text/javascript">document.getElementsByTagName('body')[0].className = 'js';</script>

Report this snippet  

You need to login to post a comment.