![]() |
|
|
+ Search |
![]()
|
Apr 15th, 2000 14:28
Martin Honnen,
JavaScript 1.2 introduced the charCodeAt(index) method for strings where index is optional and defaults to 0 thus var c = 'Kibo'.charCodeAt() gives the character code of K, var c = 'Kibo'.charCodeAt(3) gives the character code of o. While charCodeAt works for iso/latin1 characters in JavaScript 1.2 it was extended in JavaScript 1.3 to cover unicode characters.