This example uses the HTML DOM to assign an "onreset" event to a form element.
When you reset the form, a function is triggered which outputs some text.