Forum Moderators: open
I know that most (if not all) browsers behave in a similar way such that when you are filling out a form and when you press the enter key, the form submits automatically.
Is there any chance that this can be disabled at all. This is potentially a problem when users tries to enforce a carriage return in a text field by press enter but instead submits the unfinished form.
Any feedback is really appreciated guys.
Thanks
<form ... onSubmit="return false;">
...
<input type="button" value="Submit" onClick="this.form.submit();">
</form>
;)
1) Use document.write() to create the standard button.
2) Place a submit button within <noscript></noscript>.
Kaled.