What key is pressed?
Posted: Mon Oct 07, 2013 1:00 pm
Hello,
we try to write an event based JavaScript function. The function is bound to the "onkeyup"-event of a textbox:
ecc.dateChecker(this);
So the function is called after every keystroke. But in our function we have to know which key was pressed. Also we need to know, on which position in the field the cursor is.
Can you help us?
Dieter
we try to write an event based JavaScript function. The function is bound to the "onkeyup"-event of a textbox:
ecc.dateChecker(this);
So the function is called after every keystroke. But in our function we have to know which key was pressed. Also we need to know, on which position in the field the cursor is.
Can you help us?
Dieter