CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Location
    Hyderabad
    Posts
    76

    How to get keyboard characters

    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?
    Ashish Sheth

  2. #2
    Join Date
    Jul 2003
    Posts
    23
    IE

    window.event.keyCode


    Netscape

    window.captureEvents(Event.KEYPRESS);



    Here is a table with the ascii codes
    Ascii Codes
    John Debnam
    ASP.NET newbie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured