typetype*
*



Contents  *



Index  *Topic Contents
*Previous Topic: type
*Next Topic: type

type

Description

Specifies the type of intrinsic control represented by the given element object.

Syntax

object.type

Settings

This read-only property is a string specifying the control type. The possible values depend on the element as listed in the following table.
Element Possible Value Description
INPUT button Used to create a button control.
checkbox Used for simple Boolean attributes or for attributes that can take multiple values at the same time. It 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.
file A file upload element.
hidden No control is presented to the user, but the value of the value property is sent with the submitted form.
image An image control that you can click, causing the form to be immediately submitted. The coordinates of the selected point are measured in pixel units from the upper-left corner of the image, and are submitted with the form as two name/value pairs. 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.
password Similar to the text control, except that text is not displayed as the user enters it.
radio Used for mutually exclusive sets of values. 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.
reset Reset is 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.
submit Submit is a button that when clicked submits the form. 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 in order to submit the form, and that button has a name attribute specified, that button contributes a name/value pair to the submitted data.
text Used for a single-line text-entry control. Use in conjunction with the size and maxLength properties.
SELECT select-multiple Used to specify a multiple-select list box.
select-one Used to specify a single-select list box.
TEXTAREA textarea Used for multiple-line text-entry controls. Use in conjunction with the size and maxLength properties.

Applies To

INPUT, SELECT, TEXTAREA


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