The submit Object [2|3|I]
The submit object reflects a submit button from an HTML form in JavaScript.
Properties
enabled— A Boolean value indicating whether the submit button is enabled. (Not 2|3.)
form— A reference to the form object containing the submit button. (Not 2|3.)
name— A string value containing the name of the submit button element.
type— A string value reflecting the type attribute of the <input/> element. (Not 2|I.)
value— A string value containing the value of the submit button element.
Methods
click()— Emulates the action of clicking the submit button.
focus()— Gives focus to the submit button. (Not 2|3.)
Event Handlers
onClick— Specifies the JavaScript code to execute when the submit button is clicked.
onFocus— Specifies the JavaScript ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.