skip to contentstylized crane logoWhite Crane Education

Reset Objects

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

Events

onblur onclick ondblclick onfocus
onkeydown onkeypress onkeyup onmousedown onmouseenter
onmouseleave onmousemove onmouseout onmouseover
onmouseup

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 onclick event to fire
focus() moves the focus to the button