Change CSS property of a DOM element

Easy peasy!

You can change all these properties on DOM element using the “style” property. For example:

var Body = document.querySelector('body'); Body.style.backgroundColor = "red";

This is a key concept is creating interesting visual effects with Javascript.