Click to Rate and Give Feedback
MSDN
MSDN Library
HTMLInputElement Prototype

Defines the properties and methods inherited by objects in the HTMLInputElement prototype chain.

Syntax

HTMLN/A
ScriptingHTMLInputElement.prototype

Members Table

The following table lists the members exposed by the HTMLInputElement Constructor object.

Attributes/Properties

AttributePropertyDescription
ACCEPTaccept Gets or sets a comma-separated list of content types.
ALIGNalign Sets or retrieves how the object is aligned with adjacent text.
ALTalt Sets or retrieves a text alternative to the graphic.
CHECKEDchecked Sets or retrieves the state of the check box or radio button.
complete Retrieves whether the object is fully loaded.
DATAFLDdataFld Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.
DATAFORMATASdataFormatAs Sets or retrieves the rendering format for the data supplied to the object.
DATASRCdataSrc 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.
DYNSRCdynsrc 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.
HSPACEhspace Sets or retrieves the horizontal margin for the object.
indeterminate Sets or retrieves whether the user has changed the status of a check box.
LOOPloop Sets or retrieves the number of times a sound or video clip will loop when activated.
LOWSRClowsrc Sets or retrieves a lower resolution image to display.
MAXLENGTHmaxLength Sets or retrieves the maximum number of characters that the user can enter in a text control.
NAMEname Gets or sets the name of the object.
READONLYreadOnly Sets or retrieves the value indicated whether the content of the object is read-only.
SIZEsize Sets or retrieves the size of the control.
SRCsrc Sets or retrieves a URL to be loaded by the object.
startstart Sets or retrieves when a video clip file should begin playing.
status Sets or retrieves the value indicating whether the control is selected.
TYPEtype Retrieves or initially sets the type of input control represented by the object.
USEMAPuseMap Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
VALUEvalue 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.
VSPACEvspace Sets or retrieves the vertical margin for the object.
WIDTHwidth Sets or retrieves the calculated width of the object.

Events

EventEvent PropertyDescription
abortonabort Fires when the user aborts the download.
changeonchange Fires when the contents of the object or selection have changed.
erroronerror Fires when an error occurs during object loading.
loadonload Fires immediately after the client loads the object.
selectonselect Fires when the current selection changes.

Methods

MethodDescription
createTextRange Creates a TextRange object for the element.
select Highlights the input area of a form element.

Styles

Style attributeStyle propertyDescription
borderborder Sets or retrieves the properties to draw around the object.
heightheight Gets or sets the height of the object.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker