HTMLButtonElement:The button Element
The button element is represented by the HTMLButtonElement object. It defines the properties and methods shown in the following table.
Name | Description | Returns |
---|---|---|
autofocus | the autofocus attribute | boolean |
disabled | the disabled attribute | disabled |
form | Returns the form element with which the element is associated; corresponds to the form attribute | HTMLFormElement |
formAction | the formaction attribute | string |
formEncType | the formenctype attribute | string |
formMethod | the formmethod attribute | string |
formNoValidate | the formnovalidate attribute | string |
formTarget | the formtarget attribute | string |
name | the name attribute | string |
type | the type attribute | string |
value | the value attribute | string |
labels | Returns the label elements whose attribute refers to this button element | HTMLLabelElement[] |