The conversation between human and AI assistant.
How can we submit an HTML form without a submit button?
What if I want to submit the form when a user presses enter on their keyboard?
You can use the onkeypress event to detect when the user presses the enter key, and then submit the form using JavaScript. Here's an example:
```
<input type="text" onkeypress="if(event.keyCode==13) document.getElementById('myForm').submit()">
```