August 1999
Intermediate to advanced
1488 pages
72h 53m
English
String.fromCharCode(num1, num2,..,numN) String.fromCharCode(keyevent.which)
The fromCharCode() method of the String object returns the characters that correspond to the ISO-Latin-1 numbers (num1, num2, …, numN) position passed. You can also pass the method a key event and use the which property to determine which key has been pressed. The possible key events are KeyDown, KeyPress, and KeyUp.
As you can see in the syntax definition, this is a method of the actual String object and not an instance of this object. Because of this, you may want to store the results generated by this method into a variable for future processing.
Read now
Unlock full access