human
How do I change the button color in Javascript?
assistant
Change Button Color in Javascript
1. Open your project in a Java-editing environment.  
2. Enter the following code into your program to change the button's color with "onclick." 
3. Enter the following code into your program if you want to change the button's color when a text field is filled in.