How do i do this?

How can i get a javascript that

when me or a user presses a button and then the set content inside the button is inserte into a text area.

Anyone know? thanks