如何使用< a href ...>进行提交......< / a>链接? [英] How to make a submit out of a <a href...>...</a> link?
本文介绍了如何使用< a href ...>进行提交......< / a>链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用了< a href =...>链接到另一页的图像。 < img ...> < / a>
。
如何让它发布信息,如果它是一个按钮< input type =submit...>
?
How can I make it make a post like if it was a button <input type="submit"...>
?
推荐答案
<input type="image" name="your_image_name" src="your_image_url.png" />
这将发送 your_image_name.x
和 your_image_name.y
值,因为它提交表单,即用户点击图像位置的x和y坐标。
This will send the your_image_name.x
and your_image_name.y
values as it submits the form, which are the x and y coordinates of the position the user clicked the image.
这篇关于如何使用< a href ...>进行提交......< / a>链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文