You are here: irt.org | FAQ | JavaScript | Text | Q1227 [ previous next ]
Try:
<script language="JavaScript"><!--
var text1 = 'a?bc4*';
var text2='';
for (i=0;i<text1.length;i++)
text2 += text1.charCodeAt(i).toString(16);
alert(text2);
//--></script>