javascript change element background color on click code example Example: javascript change background color document.body.style.backgroundColor = "yellow";