How to Get the body Element with document.body in JavaScript
document.body is the page's <body> element, ready to use without searching for it. Change it to affect the whole visible page, for example its colors or a data-* attribute that your CSS reacts to. It's null until the browser has reached the <body> tag, so use it from a script inside the body.
