asp.net.ph

Skip Navigation Links

TYPE Attribute | type Property

Language References


Sets or retrieves the type of control represented by the object.

Syntax


Inline <element TYPE = sType...>
Script [ sType = ] object.type

Possible Values


HTMLAREA htmlarea Used for multiple-line rich HTML-entry controls. Use the size and readOnly properties.
INPUT button Creates a button control.
checkbox Creates a checkbox for simple Boolean attributes or for attributes that can take multiple values at the same time. The input consists of 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 Creates a file upload object.
hidden Creates a control hidden from the user, but the value of the value property is sent with the submitted form.
image Creates an image control that can be clicked, 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 object.
password Creates a control similar to the text control, except that text is not displayed as the user enters it.
radio Creates radio buttons 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 Creates 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 Creates a button that, when clicked, submits the form. You can use the value attribute to provide a label that cannot be edited which is 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.
text Creates a single-line text-entry control. Use the value in conjunction with the size and maxLength properties.
SELECT select-multiple Creates 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 the value size and maxLength properties.

The property is read-only with no default value.

Applies To

HTMLAREA, INPUT, SELECT, TEXTAREA



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note