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

goto next textbox on <enter>

Status
Not open for further replies.

jacobus

Programmer
Apr 16, 2001
15
NL
howdy,

can anybody tell me how to go to the next textbox on a form when hitting the <ENTER> key?
I've tried &quot;onKeydown=DoSomething(event.Keycode)&quot; in Javascript but get an &quot;undefined&quot; value when openeing an alertbox to check the value of the key that was hit.
You can use &quot;sub myForm_onKeyDown&quot; but how do I get the &quot;key-that-was-hit&quot;-value?

thanks jacobus
 
Remember that JavaScript is case sensitive.
onKeyDown=&quot;alert(event.keyCode)&quot;
 
thanks adam0101

I found a neat little bit of code on The JavaScript Source that solved the problem for me.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top