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
Event Object
Form
Reset
Submit
METHOD: String::charCodeAt
object.
charCodeAt
(index)
This method returns a character's Unicode value from a string by referring to its index within that string. The characters in a string are indexed from left to right with the first character indexed as 0 and the last as
String.length
- 1.
The following code reads a character from the string at the specified index and writes its Unicode value to the document.
Code:
myString = new String("charCodeAt method demonstration.")
document.write (myString.charCodeAt(2))
Output:
97
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information