View Full Version : text update

11-02-2012, 02:20 AM
is there a way in javascript to run a javascript code as the text in a textbox is being changed? onchange is almost onlostfocus

Old Pedant
11-02-2012, 02:55 AM
Several ways. You could use onkeydown or onkeyup to run some code on each keydown or keyup. You could use setInterval to run the code every NN milliseconds, no matter what. You could use onpaste to capture and attempt to paste text (e.g., with the mouse) into the field. And so on.

Maybe a more specific question would let us help you more.