Home >Web Front-end >Front-end Q&A >What are the form methods in javascript
There are two form methods built into JavaScript, namely: 1. reset(), used to reset all input elements of the form to their default values; 2. submit(), used to reset the form Data is submitted to the web server.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
The Form object represents an HTML form.
In an HTML document, a Form object is created every time
The above is the detailed content of What are the form methods in javascript. For more information, please follow other related articles on the PHP Chinese website!