function changeColor(color) { document.getElementById('colorDiv').style.backgroundColor = color; }