Input type button changes color while pressed?

Viewed 14993

I want my input type=button to change color only while pressed. For example, if I have a white button, I want it to become green only while pressed, and when it's no more pressed I wish it returns white. How can I do this in HTML and Javascript?

3 Answers
Related