Home  >  Article  >  Web Front-end  >  form的OnSubmit和input type=image使用介绍_HTML/Xhtml_网页制作

form的OnSubmit和input type=image使用介绍_HTML/Xhtml_网页制作

WBOY
WBOYOriginal
2016-05-16 16:39:501361browse

这里如果有 那么直接按这个图像后会提交表单,

如果有OnSubmit会先执行这个函数,如果返回false则不提交表单!

复制代码
代码如下:






另外一个示例:

复制代码
代码如下:













Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn