Html php text into textbox with button?

For it to be easy on are teachers posting on are newspage i want to know how to make it when a buttons click it will put text into a textbox, i think you do it with javascript, im not sure
Update: No i just wanted like a input button such as a letter B and make it put the tages <b></b> inside the textbox
2 answers 2