You are here: irt.org | FAQ | JavaScript | Text | Q1122 [ previous next ]
You need charCodeAt():
<script language="JavaScript"><!-- Test = 'Hello World'; Values = ''; for (i=0,n=Test.length;i<n;i++) Values += Test.charAt(i) + ' = ' + Test.charCodeAt(i) + '\n'; alert(Values); //--></script>