Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 398
نمايش فراداده

Availability

JavaScript 1.1

Synopsis

form.reset( )

Description

The reset( ) method resets the specified form, restoring each element of the form to its default value, exactly as if a

Reset button had been pressed by the user. The form's onreset( ) event handler is first invoked and may prevent the reset from occurring by returning the value false.