1. The button is a button. You can call formname. Submit () in JS to submit the request explicitly. If the submit button is used, you cannot add the submit statement. Otherwise, the statement is submitted twice.
2. Press enter in an input field to submit the button for the first submit attribute by default. If both are butoon attributes, press enter to not submit the form.
3. Sometimes the page cannot be refreshed after the form is submitted, that is, when no action = "" is available, <form name = "hand" method = "Post" onsubmit = "javascript: return handle (); "> (a false value is returned after processing in handle () or <form name =" hand "method =" Post "onsubmit =" javascript: handle (); Return false "> or <input type =" button "id =" addbt "name =" addbt "value =" add Association "onclick =" javascript: sublist (); Return false; "/>. After doing so, we can ensure that only JS is executed.CodeThis page is neither refreshed nor submitted to another page.