input type=button element | input type=button object
[This documentation is preliminary and is subject to change.]
Creates a button control.
![]() ![]() |
Standards information
- HTML 4.01 Specification, Section 17.4
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7.1.22
HTML information
| Closing Tag | forbidden |
|---|---|
| CSS Display | inline |
DOM Information
Inheritance Hierarchy
Node
Element
HTMLElement
input type=button
Remarks
As of Windows Internet Explorer 7, the input type=button object no longer supports the DATAFORMATAS attribute.
Examples
This example uses the INPUT type=button element to define a button that responds appropriately when clicked.
<INPUT TYPE=button ID=btnEmergency VALUE="In case of emergency,
push this button!"
onClick="alert('Aaaaaaaggggghh!!!!')">
See also
Build date: 3/8/2012

