|
|
t******g 发帖数: 10390 | |
m******t 发帖数: 2416 | 5 An image button always submits the form like a submit button does.
So:
1. You don't need the onclick. Instead move checkForm() to
the form's onsubmit.
2. You don't need to call form.submit(). Instead either return
true or false depending on whether the input is valid.
Oh, and none of this stuff has anything to do with java, by
the way. 8-) |
|
|
|