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!

How Can I Get Last Key Pressed?

Status
Not open for further replies.

yogi77

Programmer
Oct 12, 2001
25
0
0
GB
How can I determine what the last key press was in an INPUT type=text using VBScript. I basically want to capture the user pressing the enter key so that I can fire the submit button.

Any help would be appreciated,

TIA,

Yogi
 
Sub input_onkeyup
MsgBox window.event.keycode
End Sub

PS keycode 13 is Enter "A computer scientist is a person who knows when it is time to hit the computer."

John

johnmc@mvmills.com
 
Perfect! Just what I was looking for, thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top