Beginner with javascript, and I'm trying to change the color of a button from the default gray to #A70000 with inline styles. Have the following code, but it only changes the background color after it's clicked; tried inserting the style before the onclick and that didn't work.

<input id="Fiction" value="Fiction" onclick="location.href='/entertainment/booktester/fiction';style.background='#A70000'" style="width: 75px; height: 32px" type="button" />
Any pointers on where I'm going wrong would be much appreciated.