Wednesday, August 20, 2008

Cross Browsers - keystroke input

Does anyone have trouble finding a cross-browser way to determine what keystroke is pressed?

To catch a keypress in a input box and determining on if its a TAB key or ENTER key and then run some code, here is the script. This works fine for IE and firefox.




/>

No comments: