Hi!
Put something like following in the INPUT tag for that button:
onclick="this.form.NameOfTheTextArea.Value='';"
I'm not sure about the reference to the form, maybe it should be 'FormName' instead of 'this.form' or something like that. Better post this in the HTML/WEB forum...
HTH.
>Hi,
>
>I have one HTML form with two textareas and a submit button. My program sends the HTML page with both textareas filled with some content, the user can edit them and press the submit button to send data back to the server app.
>
>Sometimes the user may desire to clear one of the textareas before inserting text (instead of selecting all text and then deleting), to make things easy I decided to put a button labelled "Clear" that when pressed clears the contents of that textarea.
>
>How can I implement that?
>
>Thanks,
>
>Fernando
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.