Home | All Questions | alt.html FAQ >

How do I stop a form submitting when pressing enter?

Basically, you don't. So the form handler needs to be prepared to anything, as usual, including premature submissions.

For some notes on JavaScript methods which _partially_ prevent such submissions, see http://www.cs.tut.fi/~jkorpela/forms/enter.html

Recommended Resources


Related Questions