how to stop enter key from submitting the form code example Example: how to stop form from submitting on enter <form ... onkeydown="return event.key != 'Enter';">