I want to change the color of a title when a button is clicked. This is my code, but it\'s not working and I can\'t figure out why not...
innerHTML is a string representing the contents of the element.
innerHTML
You want to modify the element itself. Drop the .innerHTML part.
.innerHTML