Onkeydown, I run the following JavaScript:
Onkeydown
function ThisOnKeyDown(el) { if (el.title == \'textonly\') { !(/^[A-Za-zÑñ-\\s]*$/i).test(e
Run your code against the onkeyup event and not the onkeydown event. This way you can access the result of the very last keystroke where as the onkeyup event executes as a key is pressed without knowing its result.