asp.net.ph

Skip Navigation Links

reset Method

DHTML Methods


DOM Level 1 Specification.

Restores a form element’s default values.

Syntax

form.reset ( ) 
Return Value

No return value.

Remarks

The reset method simulates a mouse click on a reset button for the calling form. It performs the same action as a reset button.

Example

The reset method may be called in the following, essentially equivalent ways:

document.formName.reset ( );
document [ 'formName' ] .reset ( );
document.forms [ formIndex ] .reset ( );
Applies To

FORM

See Also

INPUT Reset, submit



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note