SyntaxFix
Write A Post
Hire A Developer
Questions
I believe you want bgcolor. Something like this:
document.getElementById("button").bgcolor="#ffffff";
Here are a couple of demos that might help:
Background Color
Background Color Changer