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...
use ONLY
function init() { about = document.getElementById("about"); about.style.color = 'blue'; }
.innerHTML() sets or gets the HTML syntax describing the element's descendants., All you need is an object here.
.innerHTML()
Demo