[Javascript] ASCII to Text (complete answer)

shawn_milochik at godivachoc.com shawn_milochik at godivachoc.com
Fri Apr 30 11:36:36 CDT 2004





<script type="text/javascript">

   var testNum = 65;
   var testChar = 'A';

   //number to character
   alert(String.fromCharCode(testNum));


   //character to number
   alert(testChar.charCodeAt(0));



</script>

Shawn




**********************************************************************
This e-mail and any files transmitted with it may contain 
confidential information and is intended solely for use by 
the individual to whom it is addressed.  If you received
this e-mail in error, please notify the sender, do not 
disclose its contents to others and delete it from your 
system.

**********************************************************************




More information about the Javascript mailing list