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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hitting Enter on a Page 1

Status
Not open for further replies.
Oct 31, 2002
15
CA
When a user visits a site and enters text in a search area, he/she often hits enter to submit the query. On my page, using Speedware Autobahn, hitting enter performs a different function and takes the user to a blank page.

How can i indicated what i want enter to function as. I want enter to act as if the user selected the SUBMIT/Search button on the page.

Thanks in advance,

Matt Clarke
 
this is a tough one. I know an ugly way to do this.

in all text fields add onkeypress="return (event.keyCode != 13)" :

<form>
<input type=&quot;text&quot; onkeypress=&quot;return (event.keyCode != 13)&quot;>
</form>

Of course this isn't the most elegant way. BTW what the heck is Speedware Autobahn? Gary Haran
 
Thanks for the input xutopia! i will give it a try.

Speedware Autobahn is an application that interacts with our hp3000 relational *cough*OLD*cough* database for web application.

i hope that makes sense.....


cheers,

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top