document.getElementById("answer").style.color = 'white'
it just doesn't work. Can somebody help me?
Where are you running this script? In the head of the page, or the body?
If in the head, try moving the script element to the bottom of the body (just before the closing
</body>), or use an onload handler attached to the body so that the code is not executed until after the element you're trying to set the color of has loaded