Input — an HTML <input> element
Node, Element, FormControl
An Input object represents an HTML form
<input> element. Its appearance and
behavior depends on its
attribute: an Input element might represent a simple text input
field, a checkbox, a radio box, a button, or a file selection
element, for example. Because an
<input> element can represent so
many kinds of form controls, the Input element is one of the most
complicated. See HTML Forms for an overview of
HTML forms and form elements. Note that some of the important
properties of the Input element (such as
form) are documented in FormControl.
In addition to the properties listed here, Input elements also implement all of the properties defined by Element and FormControl. The properties marked with an asterisk in this list are newly defined by HTML5 and are not yet, at the time of this writing, widely implemented.
type is “file”,
this property is a comma-separated list of MIME types that
specify the types of files that may be selected. The strings
“audio/*”, “video/*”, and “image/*” are also legal. Mirrors
True if the browser can prefill this Input element with
a value from a previous session. Mirrors that
autocomplete attribute. See also the
autocomplete property of
For checkable input elements, this property specifies whether the element is “checked” or not. Setting this property changes ...