Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capuring carriage return/submitting a form

Status
Not open for further replies.

Stewart531

Programmer
Feb 18, 2003
36
US
I have a problem submitting a form. It consists of one field and a submit button. When a user clicks the submit button, the page loads properly. However, if the user hits enter in the field, the page loads improperly. Is there any way to capture the carriage return or can I simulate a button click with the <Form onSubmit... option?

Thanks,
Stewart
 
you can catch the key event in javascript.

any problems try forum216

1H 1K 10 3D 3F 3E 3K 38 3J 10 1T 10 3G 3L 3I 35 10 35 3O 33 35 3C 3C 35 3E 33 35

onpnt2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top