Button Label

Hi

Does anyone know a way to change the label on a button once you have clicked it?

I have a button that says Click Here. When users click the button I would like the text to change to Thank You - I assume I need to use the OnClick option but I don’t know what code to use to change the Label.

Any help would be much appreciated.

Thanks

Subject: Button Label

Why not use hide-when formulas and display a different button after the client has clicked?