change (not doing it)

change (not doing it)

i have a scipt ive made which validates email and confirm email fields...but change isnt doing what i want.

basically i want the script to run when a user is typing not when change has happened to the fields and focus is off the field.

is there a way of doing is?

i hope you understand my question...thanks