Name
<button>
Synopsis
<button>
Description
Create a push-button element within a <form>.
Attributes
-
accesskey=char Define the hot-key character for this button.
-
disabled Disable the button, preventing the user from clicking it.
-
name=name Specify the name of the parameter to be passed to the form-processing application if the input element is selected (required).
-
onblur=applet Specify an applet to be run when the mouse moves out of the button.
-
onfocus=applet Specify an applet to be run when the mouse moves into the button.
-
type=type Specify the button type, either
button,submit, orreset.-
tabindex=n Specify this element’s position in the tabbing order.
-
value=string Specify the value of the parameter sent to the form-processing application if this form element is selected (required).
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