files/en-us/web/api/htmlbuttonelement/index.md
{{APIRef("HTML DOM")}}
The HTMLButtonElement interface provides properties and methods (beyond the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating {{HTMLElement("button")}} elements.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("HTMLElement")}}.
{{domxref("HTMLButtonElement.command")}}
{{domxref("HTMLButtonElement.commandForElement")}}
{{domxref("HTMLButtonElement.disabled")}}
{{domxref("HTMLButtonElement.form")}} {{ReadOnlyInline}}
HTMLFormElement.
If the button is not a descendant of a form element, then the attribute can be a reference to any HTMLFormElement element in the same document it is related to, or the null value if none matches.{{domxref("HTMLButtonElement.formAction")}}
action attribute of the {{HTMLElement("form")}} element that owns this element.{{domxref("HTMLButtonElement.formEnctype")}}
enctype attribute of the {{HTMLElement("form")}} element that owns this element.{{domxref("HTMLButtonElement.formMethod")}}
method attribute of the {{HTMLElement("form")}} element that owns this element.{{domxref("HTMLButtonElement.formNoValidate")}}
novalidate attribute of the {{HTMLElement("form")}} element that owns this element.{{domxref("HTMLButtonElement.formTarget")}}
target attribute of the {{HTMLElement("form")}} element that owns this element.{{domxref("HTMLButtonElement.interestForElement")}} {{experimental_inline}} {{non-standard_inline}}
{{domxref("HTMLButtonElement.labels")}} {{ReadOnlyInline}}
{{domxref("HTMLButtonElement.name")}}
{{domxref("HTMLButtonElement.popoverTargetAction")}}
"hide", "show", or "toggle") on a popover element being controlled by a control button. It reflects the value of the popovertargetaction HTML attribute.{{domxref("HTMLButtonElement.popoverTargetElement")}}
popovertarget HTML attribute.{{domxref("HTMLButtonElement.type")}}
submit: The button submits the form. This is the default value if the attribute is not specified, or if it is dynamically changed to an empty or invalid value.reset: The button resets the form.button: The button does nothing.menu: The button displays a menu. {{experimental_inline}}{{domxref("HTMLButtonElement.willValidate")}} {{ReadOnlyInline}}
false if any conditions bar it from constraint validation, including: its type property is reset or button; it has a {{HTMLElement("datalist")}} ancestor; or the disabled property is set to true.{{domxref("HTMLButtonElement.validationMessage")}} {{ReadOnlyInline}}
willValidate is false), or it satisfies its constraints.{{domxref("HTMLButtonElement.validity")}} {{ReadOnlyInline}}
{{domxref("HTMLButtonElement.value")}}
Inherits methods from its parent, {{domxref("HTMLElement")}}.
true if the element's value has no validity problems; otherwise, returns false.checkValidity(), but also reports the result to the user if the invalid event was not canceled.{{Specifications}}
{{Compat}}