Полезная информация

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference

Element.defaultValue Property


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


Navigator 2.0, Internet Explorer 3.0




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