I have a simple form with one text field and a button. Now the button uses the onclick event with javascript to submit the form because I did not want the users to submit the form when pressing enter, which is the case with submit buttons.
If I do not focus on the text field and press enter, nothing happens which is what I want, but if I put the focus in the text field and press enter, the form is submitted but no information is passed.
I have used this technique in all my pages to control the users use of the enter button.
Any ideas why this is happening?
Denis
Programmer, Canada
If I do not focus on the text field and press enter, nothing happens which is what I want, but if I put the focus in the text field and press enter, the form is submitted but no information is passed.
I have used this technique in all my pages to control the users use of the enter button.
Any ideas why this is happening?
Denis
Programmer, Canada