Dan G. Switzer, II ha scritto:
Giovanni,

You need to use the keypress event if you truly want to know which character
was pressed.

However, IE6 doesn't register the keypress event for certain non-printable
characters (like the backspace, the arrow keys, etc.) So, for IE6 you need
to capture those characters either on keydown (which I prefer) or keyup and
then call your event handler function (onlyNumbers) for when those keys are
pressed.

-Dan
Thank you Dan for your precious help, I was going crazy! :-)

For the IE6 note I think this is not a problem, because I don't care the non-printable characters, then it will work perfectly.

Thank you again :-)

Reply via email to