html add a clas to a html element when clicked code example
Example: add class to html tag javascript
var root = document.getElementsByTagName( 'html' )[0]; // '0' to assign the first (and only `HTML` tag)
root.className += ' responsive';
var root = document.getElementsByTagName( 'html' )[0]; // '0' to assign the first (and only `HTML` tag)
root.className += ' responsive';