Name
Button — an HTML <button>
Inherits from
Node, Element, FormControl
Synopsis
A Button object represents an HTML <button> element. Most of the
properties and methods of Buttons are described in FormControl and Element.
When a Button has a type property
(see FormControl) “submit”, however, the
other properties listed here specify form submission parameters that
override similar properties on the Button’s form (see FormControl).
Properties
The following properties are meaningful only when the <button> has a type of “submit”.
stringformActionThis property mirrors the
formactionHTML attribute. For submit buttons, it overrides theactionproperty of the form.stringformEnctypeThis property mirrors the
formenctypeHTML attribute. For submit buttons, it overrides theenctypeproperty of the form and has the same legal values as that property.stringformMethodThis property mirrors the
formmethodHTML attribute. For submit buttons, it overrides themethodproperty of the form.stringformNoValidateThis property mirrors the
formnovalidateHTML attribute. For submit buttons, it overrides thenoValidateproperty of the form.stringformTargetThis property mirrors the
formtargetHTML attribute. For submit buttons, it overrides thetargetproperty of the form.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access