The Reset object represents a Reset button within an HTML form.
The button is created using the HTML tag and specifying the TYPE attribute as reset.
Reset buttons are used for form submissions.
Property/MethodDescription
blur()Removes focus from Reset button
click()Simulates a mouse click on a Reset button
focus()Sets the focus to the Reset button
formSpecifies the form name that contains the Reset button
handleEvent()Invokes the event handler
nameHTML NAME attribute for the Reset button
onBlurEvent handler for Blur event
onClickEvent handler for Click event
onFocusEvent handler for Focus event
typeHTML TYPE attribute for the Reset button
valueHTML VALUE attribute for the Reset button
Example of the reset object