HBCMS更多的中文手册参考:

TYPE Attribute | type参数属性

DHTML文档教程

Retrieves or initially sets the type of input control represented by the object.

dhtml语法

html<ELEMENT TYPE = sType... >
Scriptingobject.type [ = sType ]

DHTML可能的值

sTypeString that specifies or receives one of the input control values in Possible Values.
buttonCreates a button control.
checkboxCreates 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 is on.
fileCreates a file upload object.
hiddenCreates a control hidden from the user, but the value of the value property is sent with the submitted form.
imagecreates an image control that can be clicked, causing the form to be immediately submitted. the coordinates of the selected point are measured in pixels 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 is specified by the src property, exactly as for the img object
passwordcreates a control similar to the text control, except that text is not displayed as the user enters it.
radiocreates 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.
resetcreates a button that resets the form's controls to their specified initial values. you can specify the label to display on this button just as you can for the submit button.
submitcreates a button that submits the form. use the value attribute to specify a label that is displayed on the button. the default label is application-specific. when the button is clicked, the associated control objects submit name/value pairs to the server.
textdefault. creates a single-line text-entry control. use the value in conjunction with the size and maxLength properties.

The property is read/write. The property has a default value of text.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

as of microsoft® internet explorer 5, the type property is read/write-once, but only when an input element is created with the createelement method and before it is added to the document.

是否符合公共标准

This property is defined in HTML 3.2 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

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