<BUTTON>
BUTTON Tag
Synopsis
<BUTTON>...</BUTTON>
Attributes
Core Attributes
| Attribute | Description | Value |
|---|---|---|
| CLASS | Space-separated list of classes. | String. |
| ID | Unique identifier. | String. |
| STYLE | Associated style info. | String. |
| TITLE | Advisory title. | String. |
Event Attributes
| Attribute | Description | Value |
|---|---|---|
| ONCLICK | A pointer button was clicked. | JavaScript code. |
| ONDBLCLICK | A pointer button was double clicked. | JavaScript code. |
| ONKEYDOWN | A key was pressed down. | JavaScript code. |
| ONKEYPRESS | A key was pressed and released. | JavaScript code. |
| ONKEYUP | A key was released. | JavaScript code. |
| ONMOUSEDOWN | A pointer button was pressed down. | JavaScript code. |
| ONMOUSEMOVE | A pointer was moved within. | JavaScript code. |
| ONMOUSEOUT | A pointer was moved away. | JavaScript code. |
| ONMOUSEOVER | A pointer was moved onto. | JavaScript code. |
| ONMOUSEUP | A pointer button was released. | JavaScript code. |
| ONFOCUS | Script to be run when the element gets focus. | JavaScript code. |
| ONBLUR | Script to be run when the element loses focus. | JavaScript code. |
General Attributes
| Attribute | Description | Value |
|---|---|---|
| DISABLED | Disables the button. The button won't work when clicked and it cannot receive focus and will be skipped when tabbing. | No value: enabled if attribute is present. |
| NAME | Name of the button. | String. |
| TYPE | What kind of button is needed | “SUBMIT”, “BUTTON”, “RESET”, . |
| VALUE | Assigns an initial value to the button. | String. |
Lang Attributes
| Attribute | Description | Value |
|---|---|---|
| DIR | Direction for weak/neutral text. | ltf or rtl. |
| LANG | Language code. | String. |
Description
Button tag