change enter key press to tab

10:39 pm, February 5, 2019
I needed a way to stop a form from submitting when you press [enter], so added this script to change the enter keypress to tab so it switches to the next form element. This also makes it impossible to edit this code! :) https://stackoverflow.com/questions/1009808/enter-key-press-behaves-like-a-tab-in-javascript

Code

html
css
js
scripts

Download & Run

Download File Run Demo Re-load Preview

Preview

P2l6p