Hi all,
How to know which key is being pressed in a key press event of a textbox??
I want the user can only enter alphbets not any other caracters in my textbox. How i can do this in javascript?
Printable View
Hi all,
How to know which key is being pressed in a key press event of a textbox??
I want the user can only enter alphbets not any other caracters in my textbox. How i can do this in javascript?
IE
window.event.keyCode
Netscape
window.captureEvents(Event.KEYPRESS);
Here is a table with the ascii codes
Ascii Codes