Aug 16, 2000 #1 oil MIS Mar 3, 2005 2 GB Hi, Any body know how to convert character to ascii code with JavaScript. So please tell me Oil
Aug 17, 2000 #2 rbobbitt Programmer Aug 17, 2000 566 US The simple way is to use charCodeAt. However this is only compatible with newer browsers (>=version 4): var c='a'; var a=c.charCodeAt(0); // ascii value of c Here's an article on how to do it without charCodeAt: http://developer.irt.org/script/424.htm Upvote 0 Downvote
The simple way is to use charCodeAt. However this is only compatible with newer browsers (>=version 4): var c='a'; var a=c.charCodeAt(0); // ascii value of c Here's an article on how to do it without charCodeAt: http://developer.irt.org/script/424.htm