` tag in an HTML form"> ` tag in an HTML form" />
Easy Tutorial
❮ Met His Go Event Onkeydown ❯

HTML DOM


Submit Object

The Submit object represents a submit button in an HTML form.

Each occurrence of the <input type="submit"> tag in an HTML form creates a Submit object.

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 specific 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 this 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 Attributes and Events

The Submit object also supports standard attributes and events.

❮ Met His Go Event Onkeydown ❯