*READ* what I wrote!
Do you see the word "document" anywhere in there???
The expression document.this
and so your JS
code is IGNORED and indeed the submit takes place.
I have no idea why you would want to use <input type="submit" ...>
as a RESET button. If you want to just use a button, simply do
<input type="reset" value="Clear the form" />
and *NOTHING ELSE*.
The ONLY reason to explicitly call the reset( )
method is because you want to use something *other* than a standard reset button.