A graphical button that submits the data of an HTML form when clicked.
Platform Support
| IE | Mozilla | Netscape | Opera | Chrome | Safari | 3.0+ | 1.0+ | 2.0+ | no | no | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari | ||
|---|---|---|---|---|---|---|---|---|---|
|
Submit Constructor() : Submit
Creates a new instance of a Submit object.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | no | no | no | ||
Submit() : SubmitCreates a new instance of a Submit object. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari |
|---|---|---|---|---|---|---|---|
|
onclick
: Object
Event handler for when a user clicks the button.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|
|||||||
|
Text displayed on the button.
|
No Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|
|
|||||||
References
Button|Form.onsubmit|Form.submit|HTMLElement|Input|HTMLInputElement
Availability
JavaScript 1.0|enhanced in JavaScript 1.1