This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12287|Reply: 0

[HTML/HTML5] Regarding the automatic submission of forms with the button under the form form

[Copy link]
Posted on 4/22/2016 6:10:20 PM | | |

Today I encountered a very disgusting problem, the button button tab under the form form will automatically submit the form every time you click, it doesn't play the role of a button at all, I was depressed for a long time, searched for a long time, and finally had an epiphany, and the solution is listed below.

1 TestedLabel the button with the type="button" propertyto solve the problem

2 tagged with <input type="button"> can also solve the problem

I don't know if this is a problem with the browser or a problem with HTML.




Previous:Winform obtains all the IP addresses of the machine and filters the IP addresses of the private network
Next:C# thread pool execution example
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com