View Full Version : button question


plankton
03-19-2003, 12:13 AM
Is it posible to have a button that when clicked, words will appear in a textarea on the page? If it is posible, can someone please tell me how I can do this? thks

Cagez
03-19-2003, 11:37 PM
Yep!


<form name="formy">

<input type="button" name="clicky" value=" Click Me! " onclick="document.formy.texty.value += 'This is the value added to the textbox!'" />

<br />

<textarea name="texty" rows="5" cols="40"></textarea>

</form>

plankton
03-19-2003, 11:54 PM
Thank You very much!