Name
HTMLInputElement — an input element in an HTML form
Availability
DOM Level 1 HTML
Inherits from/Overrides
Node → Element → HTMLElement → HTMLInputElement
Properties
-
String accept A comma-separated list of MIME types that specify the types of files that may be uploaded when this is a FileUpload element. Mirrors the
acceptattribute.-
String accessKey The keyboard shortcut (which must be a single character) that a browser may use to transfer keyboard focus to this input element. Mirrors the
accesskeyattribute.-
deprecated String align The vertical alignment of this element with respect to the surrounding text, or the left or right float for the element. Mirrors the
alignattribute.-
String alt Alternate text to be displayed by browsers that cannot render this input element. Particularly useful when
typeisimage. Mirrors thealtattribute.-
boolean checked For Radio and Checkbox input elements, specifies whether the element is “checked” or not. Setting this property changes the visual appearance of the input element. Mirrors the
checkedattribute.-
boolean defaultChecked For Radio and Checkbox elements, holds the initial value of the
checkedattribute as it appears in the document source. When the form is reset, thecheckedproperty is restored to the value of this property. Changing the value of this property changes the value of thecheckedproperty and the current checked state of the element.-
String defaultValue For Text, Password, and FileUpload elements, holds the ...