HTMLInputElement Prototype
Defines the properties and methods inherited by objects in the HTMLInputElement prototype chain.
Syntax
HTML N/A Scripting HTMLInputElement.prototype
Members Table
The following table lists the members exposed by the HTMLInputElement Constructor object.
Attributes/Properties
Attribute Property Description ACCEPT accept Gets or sets a comma-separated list of content types. ALIGN align Sets or retrieves how the object is aligned with adjacent text. ALT alt Sets or retrieves a text alternative to the graphic. CHECKED checked Sets or retrieves the state of the check box or radio button. complete Retrieves whether the object is fully loaded. DATAFLD dataFld Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object. DATAFORMATAS dataFormatAs Sets or retrieves the rendering format for the data supplied to the object. DATASRC dataSrc Sets or retrieves the source of the data for data binding. defaultChecked Sets or retrieves the state of the check box or radio button. defaultValue Sets or retrieves the initial contents of the object. DYNSRC dynsrc Sets or retrieves the address of a video clip or VRML world to display in the window. form Retrieves a reference to the form that the object is embedded in. HSPACE hspace Sets or retrieves the horizontal margin for the object. indeterminate Sets or retrieves whether the user has changed the status of a check box. LOOP loop Sets or retrieves the number of times a sound or video clip will loop when activated. LOWSRC lowsrc Sets or retrieves a lower resolution image to display. MAXLENGTH maxLength Sets or retrieves the maximum number of characters that the user can enter in a text control. NAME name Gets or sets the name of the object. READONLY readOnly Sets or retrieves the value indicated whether the content of the object is read-only. SIZE size Sets or retrieves the size of the control. SRC src Sets or retrieves a URL to be loaded by the object. start start Sets or retrieves when a video clip file should begin playing. status Sets or retrieves the value indicating whether the control is selected. TYPE type Retrieves or initially sets the type of input control represented by the object. USEMAP useMap Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. VALUE value Gets or sets the default or selected value of the control. vrml Sets or retrieves the URL of the virtual reality modeling language (VRML) world to be displayed in the window. VSPACE vspace Sets or retrieves the vertical margin for the object. WIDTH width Sets or retrieves the calculated width of the object. Events
Event Event Property Description abort onabort Fires when the user aborts the download. change onchange Fires when the contents of the object or selection have changed. error onerror Fires when an error occurs during object loading. load onload Fires immediately after the client loads the object. select onselect Fires when the current selection changes. Methods
Method Description createTextRange Creates a TextRange object for the element. select Highlights the input area of a form element. Styles
Remarks
For more information on this and other DOM Prototypes , see Document Object Model Prototypes, Part 1: Introduction.
This prototype derives from the Element Constructor.
Applies To
INPUT, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text
See Also