Home  >  Article  >  Web Front-end  >  Introduction to the difference between button and submit

Introduction to the difference between button and submit

零下一度
零下一度Original
2017-07-19 13:20:184559browse

There are four ways to draw a button on a page:

This is a button. If you don't write javascript, nothing will happen when you press it.

Such a button will automatically submit the form after the user clicks it, unless you write javascript to prevent it.

The above is the detailed content of Introduction to the difference between button and submit. For more information, please follow other related articles on the PHP Chinese website!

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