HTML DOM SubmitObject
Submit Object
The Submit object represents a submit button in an HTML form.
In an HTML form, a Submit object is created each time the <input type="submit"> tag appears.
Before the form is submitted, the onclick event handler is triggered, and a handler can cancel the form submission by returning false.
You can access a submit button by traversing the form's elements[] array, or by using document.getElementById().
Submit Object Properties
W3C:W3C Standard.
| Property | Description | W3C |
|---|---|---|
| disabled | Sets or returns whether the submit button should be disabled. | Yes |
| form | Returns a reference to the form that contains the submit button. | Yes |
| name | Sets or returns the name of the submit button. | Yes |
| type | Returns the form element type of the submit button. | Yes |
| value | Sets or returns the text displayed on the submit button. | Yes |
Standard Properties and Events
The Submit object also supports the standardpropertiesandevents。
Other Extensions