Disable Enter Key | JavaScriptSource

Disable Enter Key

Andrew Samoilov Feb 14, 2007

General

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.





Notes

Source Code

Paste this source code into the designated areas.

External file

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


Head

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


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)