INPUTINPUT*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IMG
*Next Topic: INS

INPUT

Description

Specifies one of these form input controls:
button
checkbox
file
hidden
image
password
radio
reset
submit
text

Collections

all, children, filters

HTML Element

INPUT

See Also

BUTTON, SELECT, TEXTAREA


INPUT type=button

Description

Creates a button control.

Properties

accessKey, className, dataFld, dataFormatAs, dataSrc, disabled, document, form, id, isTextEdit, lang, language, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, readOnly, recordNumber, sourceIndex, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, createTextRange, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onblur, onclick, ondblclick, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT

See Also

BUTTON


INPUT type=checkbox

Description

Represents simple Boolean attributes or attributes that can take multiple values at the same time.

Remarks

This element is represented by a number of check box controls, each of which has the same name. Each selected check box generates a separate name/value pair in the submitted data, even if this results in duplicate names. The default value for check boxes is on.

Properties

accessKey, checked, className, dataFld, dataSrc, defaultChecked, disabled, document, form, id, indeterminate, isTextEdit, lang, language, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerText, parentElement, parentTextEdit, recordNumber, size, sourceIndex, status, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondblclick, onerrorupdate, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT


INPUT type=file

Description

Uploads files.

Properties

accessKey, className, defaultValue, disabled, document, form, id, isTextEdit, lang, language, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerText, parentElement, parentTextEdit, readOnly, recordNumber, sourceIndex, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onblur, onchange, onclick, ondblclick, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT


INPUT type=hidden

Description

Transmits state information about client/server interaction.

Remarks

This value presents no control to the user, but sends the value of the value property with the submitted form.

Properties

className, dataFld, dataSrc, disabled, document, form, id, isTextEdit, language, name, parentElement, parentTextEdit, sourceIndex, style, tagName, type, value

Methods

contains, getAttribute, removeAttribute, setAttribute

Events

onafterupdate, onbeforeupdate, onerrorupdate

HTML Element

INPUT


INPUT type=image

Description

Represents an image control that you can click, causing the form to be immediately submitted.

Remarks

The x-coordinate is submitted under the name of the control with .x appended, and the y-coordinate is submitted under the name of the control with .y appended. Any value property is ignored. The image itself is specified by the src property, exactly as for the IMG element.

Properties

accessKey align, alt, className, complete, disabled, document, dynsrc, filter, form, height, id, innerHTML, isTextEdit, language, loop, lowsrc, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, readyState, recordNumber, sourceIndex, src, start, style, tabIndex, tagName, title, type width

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onabort, onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondataavailable, ondatasetchanged, ondatasetcomplete, ondblclick, onerror, onerrorupdate, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onrowenter, onrowexit, onselect

HTML Element

INPUT

See Also

IMG


INPUT type=password

Description

Similar to the text control, except that text is not displayed as the user enters it.

Properties

accessKey, align, className, dataFld, dataSrc, defaultValue, disabled, document, form, id, isTextEdit, lang, language, maxLength, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, readOnly, size, sourceIndex, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onblur, onchange, onclick, ondblclick, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT


INPUT type=radio

Description

Used for mutually exclusive sets of values.

Remarks

Each radio-button control in the group should be given the same name. Only the selected radio button in the group generates a name/value pair in the submitted data. Radio buttons require an explicit value property.

Properties

accessKey, checked, className, dataFld, dataSrc, defaultChecked, disabled, document, form, id, isTextEdit, lang, language, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerText, parentElement, parentTextEdit, recordNumber, size, sourceIndex, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondblclick, onerrorupdate, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT


INPUT type=reset

Description

Represents a button that, when clicked, resets the form's controls to their specified initial values. The label to be displayed on the button can be specified just as for the submit button.

Properties

accessKey, className, disabled, document, form, id, isTextEdit, lang, language, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, recordNumber, sourceIndex, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onblur, onclick, ondblclick, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT

See Also

BUTTON


INPUT type=submit

Description

Represents a button that, when clicked, submits the form.

Remarks

You can use the value attribute to provide a non-editable label to be displayed on the button. The default label is application-specific. If a SUBMIT button is clicked to submit the form, and that button has a name attribute specified, that button contributes a name/value pair to the submitted data.

Properties

accessKey, className, disabled, document, form, id, isTextEdit, lang, language, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, recordNumber, sourceIndex, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onblur, onclick, ondblclick, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT

See Also

BUTTON


INPUT type=text

Description

Creates a single-line text-entry control. Use in conjunction with the size and maxLength properties.

Properties

accessKey, align, className, dataFld, dataSrc, defaultValue, disabled, document, form, id, innerHTML, isTextEdit, lang, language, maxLength, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, readOnly, recordNumber, size, sourceIndex, style, tabIndex, tagName, title, type, value

Methods

blur, click, contains, createTextRange, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, select, setAttribute

Collections

all, children, filters

Events

onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondblclick, onerrorupdate, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect

HTML Element

INPUT

See Also

TEXTAREA


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.