This example demonstrates how to use the reset method for a form object. When the button is pressed, the FORM resets, resulting in the onreset event call on the FORM object. The onreset event calls an event handler which in turn adds the text "Resetting form." to the text area below.
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.