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.