开发者

clicking on a image submits the form by default?

开发者 https://www.devze.com 2022-12-16 14:48 出处:网络
I didn\'t realize this, and just want to confirm. If I have a开发者_高级运维 html form, and an input tag of type image like:

I didn't realize this, and just want to confirm.

If I have a开发者_高级运维 html form, and an input tag of type image like:

<input type="image" name="blah" src="..." />

Clicking on the image will submit the form?

My use case is, I want to create a custom button for a submit button.


Yes, input-images will submit the form naturally. See: http://w3schools.com/tags/att_input_type.asp

image: Defines an image as a submit button

0

精彩评论

暂无评论...
验证码 换一张
取 消