|
Posted by axlq on 09/29/40 12:00
In article <ts0qo3p6i33dh14e9aoookeldba13g1g3h@4ax.com>,
Daniel Klein <danielk@featherbrain.net> wrote:
>I'm pretty new at php and web stuff so please be gentle with me.
>
>I'm trying to get a form to submit when the user presses the Enter
>key.
A browser should do this automatically on any form that contains a
text input field <input type="text" ...>. If you press Enter after
typing something in the field, the form should submit. Nearly all
browsers I have used do this.
I don't know why you'd want it on forms without a text input field,
even with Javascript. As a user, *I* certainly don't want to be
submitting a form if I happen to press the Enter key.
>Why is this such a secret in the open source world we live in?
It's no secret. It's built into the browser.
-A
Navigation:
[Reply to this message]
|