Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Reset form Property

Reset form Property

Reset Object Reference Reset Object


Definition and Usage

The form property returns a reference to the form that contains the reset button.

On success, this property returns a form object.

Syntax

resetObject.form


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the form attribute


Example

Example

Display the id of the form to which the reset button belongs:

Runoob Tutorial(runoob.com)

Email:

Try it »


Reset Object Reference Reset Object