A graphical button that submits the data of an HTML form when clicked.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | no | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of a Submit object. | 3.0+ | 1.0+ | 2.0+ | no | no |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Event handler for when a user clicks the button. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Text displayed on the button. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
References
Button | Form.onsubmit | Form.submit | HTMLElement | Input | HTMLInputElement
Availability
JavaScript 1.0 | enhanced in JavaScript 1.1
Constructor Detail
Property Detail
static Object onclick
Event handler for when a user clicks the button.
- See Also
Form.onsubmit | Form.submit | HTMLElement.onclick | EventListener | EventTarget | MouseEvent
- Availability
JavaScript 1.0 | enhanced in JavaScript 1.1
String value
Text displayed on the button.
