Change a textarea onclick

Results 1 to 2 of 2

Thread: Change a textarea onclick

  1. #1
    Join Date
    Dec 1969

    Default Change a textarea onclick

    I have a page with a menu on left and a textarea on the right. I want to be able to click on one button from the menu and have just the textarea change, if possible importing it from a new file. Thanks so much.

  2. #2
    Join Date
    Dec 1969

    Default RE: Change a textarea onclick

    The syntax:<BR><BR>function thefunction(thetextyouwant) {<BR>document.thenameofyourform.thenameofyourtexta rea.value="thetextyouwant"<BR><BR>}<BR><BR>Call the function with onclick="javascript:thefunction(&#039;the text&#039;)"<BR><BR>Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts