August 1999
Intermediate to advanced
1488 pages
72h 53m
English
textarea.defaultValueThe defaultValue property of a Textarea object instance contains the text between the beginning and ending <textarea> tags. This property is often used to reset areas to their default values after a user has modified them.
Listing 7.508 has a text area and a button. If the user edits some of the text in the box and then clicks the Click to Reset button, the text will change back to the default value.
<html> <head> <script language="JavaScript"> <!-- Hide // Define the resetForm function called by pressing the button function ... |
Read now
Unlock full access