PJ6 wrote on 03 dec 2005 in comp.lang.javascript:
> "Evertjan." <> wrote in message
> news:Xns9721C3E8FD690eejj99@194.109.133.242...
>
>> You are not telling what you mean by "do this",
>
> The subject of the post, "determining letter or digit on keydown".
>
>> but altering the
>> functionality of the ext input field risks the penalty of users
>> becoming frustrated and going runnu=ing to other sites.
>
> You assume that I'm altering behavior apparent to the user and that
> I'm working on a site
What non-apparent function would you device?
that's selling something, neither of which is true.
I did not, but let it be.
>> If you must, play with
>>
>> <input onkeypress='alert(event.keyCode)'>
>>
>> and see the ascii output enacted.
>
> Yeah. That's what I specifically said that I could do but would rather
> avoid.
What would you avoid? Finding out the function yourself?
You skip my final solution:
I wrote:
> Then try:
>
> <input onkeypress='var e=event.keyCode;return (e>47)&&(e<59)'>
Is this not what you want?
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
|