<div>
<button id="colorButton">Click me to change color</button>
</div>
<script>
document.getElementById('colorButton').addEventListener('click', function() {
this.style.backgroundColor = this.style.backgroundColor === 'red' ? 'blue' : 'red';
});
</script>