Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Objects
String Object
METHOD: String::fromCharCode
String.
fromCharCode
(num1,..........,numN)
This method takes the specified Unicode values and returns a string (but not a
String
object). Note that this method is a static method of String. Therefore, it is not used as a method of a
String
object that you have created. The syntax is always
String.fromCharCode()
as opposed to
myStringObject.fromCharCode()
.
The following code takes the specified Unicode values and writes the resulting string to the document.
Code:
document.write (String.fromCharCode(67,65,66))
Output:
CAB
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information