[thelist] FW: Why does this JS code work the way it does???

jason.handby jason.handby at corestar.co.uk
Tue Dec 12 11:19:34 CST 2006


 

-----Original Message-----
From: jason.handby 
Sent: 12 December 2006 13:38
To: 'thelist at lists.evolt.org'
Subject: RE: [thelist] Why does this JS code work the way it does???

Hi Anthony,


> Now, here's what I don't understand - why do the backspace and delete 
> keys work in the above text input element? They should comeback with 
> "false" and not "fire". But they do.
> Why? IE quirk?


Internet Explorer doesn't fire the onkeypress event when you press the
backspace or delete keys.

  http://tinyurl.com/dpr2t

I don't know if this is a quirk or a feature :-)

I think you can use onkeydown to trap a wider range of keys.



Jason



More information about the thelist mailing list