I don’t want to use a button to submit the form, I want to use a good-looking image to submit it
That way it will be submitted twice, the input itself is submitted once, and the js script is submitted again
Use images as submissions There are several methods for buttons:
1.
As written by the original poster himself, this is completely ok
2.
<script> <br>function formsubmit(){ <br>document.formtest.action="formtest.jsp"; <br>document. formtest.submit(); <br>} <br></script>
This method is often used in hybrid programming. For example, the parameters you want to submit change as the dynamically retrieved content changes.