16 out of 35 rated this helpful - Rate this topic

input type=button element | input type=button object

[This documentation is preliminary and is subject to change.]

Creates a button control.

HTML 4.01 Specification, Section 17.4HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7.1.22

Standards information

HTML information

Closing Tagforbidden
CSS Displayinline

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

input
Reference
button
input

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ