Chapter 15. Forms and Form Elements
15.1. The Form Object
<form... onreset="return confirm('Really erase ALL data and start over?')" >
Like the onsubmit handler, onreset is triggered only by a genuine Reset button. Calling the reset( ) method of a form does not trigger onreset.
Copyright © 2003 O'Reilly & Associates. All rights reserved.