HBCMS更多的中文手册参考:

TYPE Attribute | type参数属性

DHTML文档教程

Retrieves the classification and default behavior of the button.

dhtml语法

HTML<BUTTON TYPE = sType... >
Scripting[ sType = ] BUTTON.type

DHTML可能的值

sTypeString that receives one of the following values.
buttonDefault. Creates a Command button.
resetCreates a Reset button. If it's in a form, this button resets the fields in the form to their initial values.
submitCreates a Submit button. If it's in a form, this button submits the form.

The property is read-only. The property has a default value of button.

Remarks

A Submit button has the same default behavior as a button created using the submit?A href="../properties/type_7.html">type with the input object. if a user presses the enter key while viewing a form that contains a submit button, the form is submitted. this default behavior of a submit button is indicated by a border surrounding the button. the border appears when any control within the form receives the focus, other than another button. if the submit button has a name property, the button contributes a name/value pair to the submitted data.

是否符合公共标准

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

Applies To

BUTTON