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

Help with textbox

Status
Not open for further replies.

Coogan

Programmer
Joined
Jun 21, 2004
Messages
38
Location
GB
Hi all,

I have a textbox in on one of my pages and I have a small problem. If anyone goes to that page and types something in to the text box and then press's enter the page resets.

Is there anyway that I can get it so that if enter is pressed in the text box then it does an action like open another page??

Thanks
 
u may have to use javascript:
<input type="text".... onkeydown="return false">

try it...

Known is handfull, Unknown is worldfull
 
use a javascript 0nKeyUp() event and trap the enter key.

search the javascript forum216

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top