MSDN Library

String.fromCharCode Function (JavaScript)

Returns a string from a number of Unicode character values.

String.fromCharCode([code1[, code2[, ...[, codeN]]]]) 


Required. The String object.

code1, . . . , codeN

Optional. A series of Unicode character values to convert to a string. If no arguments are supplied, the result is the empty string.

A String object need not be created before calling fromCharCode.

In the following example, test contains the string "plain":

var test = String.fromCharCode(112, 108, 97, 105, 110);

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Applies To: String Object (JavaScript)

Community Additions

© 2016 Microsoft