www.webdeveloper.com
Results 1 to 2 of 2

Thread: keyPress and char

  1. #1
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    1,381

    keyPress and char

    how can i know what was the char that was pressed
    ?
    when i do : event.keyCode
    i get only the value and not the cahr itself!
    how do i get the char itself?
    thanks in advance
    peleg

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Try something like this:

    var char = String.fromCharCode(65); //A
    alert (char);

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles