Capturing text input in HTML text format after keypress?

General newbie question, so please bear with me here;)

When a key is pressed in an HTML text control, there are two events that seem useful in controlling it (onKeyPress and onChanged). onKeyPress fires after a key is pressed, but before the operation is applied to the control text. The later version only starts when you remove focus from the control and edit.

My question is, is there a way to capture the event after a key press has been applied to the control, but without removing focus (so that I can work with the resulting text)? Or are they pretty much the options I have to work with?

Thank!

+2


source to share


1 answer


You can also watch events onkeyup

and onkeydown

. I suspect you are interested. onkeyup.

Perhaps you could provide more information and I could provide a more complete example.



+2


source







All Articles