Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q972 How can I convert an ASCII code to the correct character?

irt.org | Knowledge Base | JavaScript | Text | Q972 [ previous next ]

Q972 How can I convert an ASCII code to the correct character?

In JavaScript 1.2 you can use the String objects fromCharCode() method:

<script language="JavaScript1.2"><!--
alert(String.fromCharCode(64));
//--></script>

Which will highlight the @ character.

Feedback on 'Q972 How can I convert an ASCII code to the correct character?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.