skip to contentstylized crane logoWhite Crane Education

Submit Objects

This special class of the button type represents an HTML "submit button": <input type="submit" value="Submit"> =

Events

blur click dblclick focus
keydown keypress keyup mousedown
mouseenter mouseleave mousemove mouseout
mouseover mouseup

Properties

form returns a reference to the form to which the control belongs
name returns/sets the value of the button's name attribute
type returns the value of the button's type attribute
value returns/sets the value of the button's value attribute

Methods

blur() takes the focus away from the button
click() duplicates a mouse click on the button including causing the click event to fire
focus() moves the focus to the button