HTMLButtonElement:The button Element

The button element is represented by the HTMLButtonElement object. It defines the properties and methods shown in the following table.

NameDescriptionReturns
autofocusthe autofocus attributeboolean
disabledthe disabled attributedisabled
formReturns the form element with which the element is associated; corresponds to the form attributeHTMLFormElement
formActionthe formaction attributestring
formEncTypethe formenctype attributestring
formMethodthe formmethod attributestring
formNoValidatethe formnovalidate attributestring
formTargetthe formtarget attributestring
namethe name attributestring
typethe type attributestring
valuethe value attributestring
labelsReturns the label elements whose attribute refers to this button elementHTMLLabelElement[]
Home 
  JavaScript Book 
    DOM