• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Core Syntax > String.fromCharCode()

String.fromCharCode()

JavaScript1.2+, JScript3.0+, ECMAScript1.0+ NES3+, Nav4+, IE4+ Syntax

String.fromCharCode(num1, num2,..,numN)

String.fromCharCode(keyevent.which)

Description

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.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint