js change bacground color div code example Example: javascript change background color document.body.style.backgroundColor = "yellow";