onkeypress ??

M

Mel Smith

Hi:

I have noticed that the 'onkeypress="myfunc";' clause in my <textarea>
element is called properly with most all keys *except* the keys: Del, and
Backspace. I have not tested other special keys so far

I use the 'myfunc' function to warn the user of how many characters are
remaining before reaching my database limit.

I've tried this on Chrome and IE7 so far. Both react the same.

Does anyone have an explanation for this please ?

Thanks !
 
S

SAM

Le 31/08/10 06:17, Mel Smith a écrit :
Hi:

I have noticed that the 'onkeypress="myfunc";' clause in my<textarea>
element is called properly with most all keys *except* the keys: Del, and
Backspace. I have not tested other special keys so far

I use the 'myfunc' function to warn the user of how many characters are
remaining before reaching my database limit.

I've tried this on Chrome and IE7 so far. Both react the same.

Does anyone have an explanation for this please ?


I think there are some differences between keypress and keydown

Then more, order of onkeypress onkeydown click (and probably
onmouseover) is important

<http://unixpapa.com/js/key.html>
 
M

Mel Smith

SAM said:
I think there are some differences between keypress and keydown

Then more, order of onkeypress onkeydown click (and probably onmouseover)
is important

<http://unixpapa.com/js/key.html>

Stephane:

I tried using *onkeyup*, and it works perfectly (at least on IE7 -- I'll
try the others later) !

Thank you.

-Mel Smith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top