*READ* what I wrote!
Do you see the word "document" anywhere in there???
The expression
document.this that you used is *meaningless* and will have a null value. Meaning that then you have a JavaScript
error 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
Code:
<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.