javascript append class to body code example
Example: js append class
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.add("mystyle");
}
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.add("mystyle");
}