In the script below, the reset button acts also like a submit button. Where could the problem be? Thanks.
HTML
<input type="image" name="submit" value=" " src="image.png">
<input type="image" name="reset" value=" " src="reset.png">
Thanks for your time.
Inputs of type image always act like submit buttons.
You can use JavaScript to override the default behaviour, but if the user does not have JavaScript enabled, the button will submit instead of reset.
An option would be to add a regular reset typed button and replace that with an image or image typed input with JavaScript after DOM is loaded. This would make it work on browsers without JavaScript (they get the default reset button) as well as with JavaScript enabled.