HTML element: <button>
Availability
|
Full support as of BlackBerry®
Device Software version 4.6.
|
The <button> element defines a button.
Differences between HTML, XHTML, and XHTML-MP
The <button> element is not supported in XHTML-MP.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
disabled
|
—
|
When specified, this attribute disables the button so that it cannot be clicked.
|
4.6 or later
|
name
|
text
|
This attribute defines a unique name for the button.
|
4.0 or later
|
type
|
button
reset
submit
|
This attribute defines the button type. The default value is submit.
|
4.6 or later
|
value
|
text
|
This attribute specifies an initial value for the button. The value can be changed by a script.
|
4.6 or later
|
Common attributes
|
—
|
The <button> element supports the following common attributes:
- class
- dir
- id
- lang
- style
- title
|
4.6 or later
|
Event attributes
|
—
|
The <button> element supports the following events:
- onblur
- onclick
- onfocus
- onkeydown
- onkeypress
- onkeyup
- onmousedown
- onmousemove
- onmouseout
- onmouseover
- onmouseup
|
4.6 or later
|
Index
Was this information helpful? Send us your comments.