I've created in Javascript a click event on a <button type="submit">
in a form
element. This event is also triggered when I press the enter key. Is this default html behavior?
<input type=submit>
in the form gets the automatic Enter Key behavior. This is known as an implicit form submission.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.