I have a button
<input type="button" value="Get data">
When it is clicked a database is accessed and the data is eventually
displayed on the screen.
While the data is being retrieved the button is displayed in its
"pressed in" state.
When the data arrives and is displayed the button pops out to its
normal "unpressed" state.
While the data is being retrieved I would like to alter the appearance
of the button. Ideally I would like to alter its color but more
importantly I would like to alter its value to something like
"Retrieving Data". My problem is I cannot find the button property
corresponding to its "pressed in" state or the events corresponding to
its alteration in appearance.
I guess I could do something onClick but then I am stuck without
knowing what event occurs when the button pops back to its"unpressed"
state.
Can someone enlighten me?
Thanks
N