开发者

clicking on a image submits the form by default?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜