String JavaScript Tutorial

Syntax

String.fromCharCode(num1, num2,..,numN)
    String.fromCharCode(keyevent.which)
The fromCharCode() method 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.
This is a method of the actual String object and not an instance of this object.