Disable Enter Key | JavaScriptSource

Disable Enter Key

Andrew Samoilov Feb 14, 2007


Use this script to prevent visitors from submitting a form before it is completely filled-in. Instead of using the enter key to move from field to field, they will need to use either the tab key or the mouse.


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: disableEnter.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response