A graphical button that can be "pressed" by a user.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of a Button object. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Event handler for when the button is clicked. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Text that appears on the button. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
References
Form | HTMLElement | Input | Reset | Submit | HTMLInputElement
Availability
JavaScript 1.0 | enhanced in JavaScript 1.1 | W3C
Constructor Detail
Property Detail
static Function onclick
Event handler for when the button is clicked.
- See Also
HTMLElement.onclick | EventListener | EventTarget | MouseEvent
- Availability
JavaScript 1.0
String value
Text that appears on the button.
