It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free. --Steve McConnell
Log In
Providing Microsoft .NET Articles and Code Samples since 2002
Home
→
Articles
→
Javascript Char Codes (Key Codes)
→
Comment
Home
Search
Articles
Categories
About
Welcome to my blog and project site for Microsoft.NET development.
I've been a full time .NET developer for ten years, but I didn't start my professional life as a programmer ...
more
Share/Print this page:
Please enter your reply for the comment shown below:
Post Your Comment
You may post without logging in or
login here
.
Display Name:
Required.
Email:
Required. Will not be shown. Used for identicon.
Comment:
Allowed tags: <quote></quote>, <code></code>, <b></b>, <i></i>, <u></u>, <red></red>
Please type text as shown in the image at left.
Posted
2009 Mar 12 16:22 PM
.
reply
You could use the function
charCodeAt
to get the code of a character
ex:
alert(String.charCodeAt('c'));
will alert 99
nulll