[Chapter 21] Reference: Element.defaultValue
Author: David Flanagan
Date: Fri Aug 29 11:15:30 1997

#

| Chapter 21 JavaScript Reference |

# 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"

Element.defaultChecked |  | Element.focus()