|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Disabling Submitting of Forms When User Clicks Enter
Is there a way to prevent forms from being submitting when the user hits enter? I only want the form to be submitted when the user actually clicks the submit button.
I assume there's some basic javascript solution? Can someone provide me with some guidance. Thanks a lot! |
|
#2
|
|||
|
|||
|
yes, its quite easy, just dont have a submit button, and use a link instead, such as
<a href="javascript: document.formname.submit();">submit</a> |
|
#3
|
|||
|
|||
|
Thanks Ben, I'll give that a try.
|
|
#4
|
|||
|
|||
|
if you want it to look like a submit button, you could always use an image
|
|
#5
|
|||
|
|||
|
Worked like a charm. My users will be very grateful!
Thanks again. |
|
#6
|
|||
|
|||
|
you can repay me by telling everyone about devarticle. eheh
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Disabling Submitting of Forms When User Clicks Enter |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|