Reset

JavaScript 1.2+, JScript 1.0+ Nav4+, IE 3+ Syntax

Core client-side JavaScript object.

Description

The Reset object represents a Reset button within an HTML form. The button is created using the HTML <input> tag and specifying the TYPE attribute as reset. Reset buttons are used for form submissions. The Reset object has specific properties and methods associated with it, as shown in Table 7.41.

Table 7.41. Properties and Methods of the Reset Object
Property/Method Description
blur() Removes focus from Reset button
click() Simulates a mouse click on a Reset button
focus() Sets the focus to the Reset button
form Specifies the form name that contains the Reset button
handleEvent() Invokes the event handler
name HTML NAME ...

Get Pure JavaScript 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.