Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to stop form from submitting on enter

<form ... onkeydown="return event.key != 'Enter';">
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stop #form #submitting #enter
ADD COMMENT
Topic
Name
5+5 =