Possible to change background-color onClick, then automatically change back a second later?
Posted
by yatman
on Stack Overflow
See other posts from Stack Overflow
or by yatman
Published on 2010-06-09T07:27:28Z
Indexed on
2010/06/09
7:32 UTC
Read the original article
Hit count: 133
Noob here - I'm working on a simple Javascript calculator, and I'm using lists (li) for buttons. I want the li background-color to change onClick, but then automatically change back half a second later. So basically I want the button click to flash the new color, not toggle it.
Is this possible?
© Stack Overflow or respective owner