View Single Post
Old 12-04-2012, 10:36 PM   PM User | #13
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
@donna1

Code:
String.fromCharCode(x)
is probably what you are looking for. It is not 100% reliable, though, as there is not a direct correspondence between the key-codes returned by JS and the unicode character-codes that fromCharCode() expects. (It can also depend on which key-event is used.)

BTW You will discover that you cannot expect an acknowledgement every time, even if you provide a full and correct answer to someone's question

Quote:
which I have ASKED ABOUT TWICE
..you also cannot demand an answer.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Users who have thanked AndrewGSW for this post:
donna1 (12-04-2012)