August 1999
Intermediate to advanced
1488 pages
72h 53m
English
textarea.value
The value property of an instance of a Textarea object returns the current value of the text area. Note that this is not the default value that can be accessed via the Textarea.defaultValue property and is often used to set the value of a text area.
Listing 7.522 contains a text area and button. You can edit the text in the text area, and then click the Reset button to reset the text back to the default value.
<html> <head> <script language="JavaScript"> <!-- Hide // Reset the text in the text area to its default value. function resetText(){ document.myForm.myTextArea.value ... |
Read now
Unlock full access