JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Element.defaultValue Property

Name

Element.defaultValue Property---the default text displayed in an element

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

element.defaultValue

Description

The defaultValue property of a form element specifies the initial text that appears in the form element, and the value that is restored to that element when the form is reset. This property is only used by the Text, Textarea, and Password elements. It is not used by the FileUpload element for security reasons. For Checkbox and Radio elements the equivalent property is defaultChecked.

See Also

"Element", "Password", "Text", "Textarea"


Previous Home Next
Element.defaultChecked Book Index Element.focus()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz