case String.fromCharCode(13) ??
I am writing a small js app... I need to use Switch and case for to process a string (textarea).
I don't know why but I am unable to make the script recognize the "Enter key":
case String.fromCharCode(13) :
w = w+String.fromCharCode(13);
All other chars work fine es:
case String.fromCharCode(32) :
w = w+String.fromCharCode(32);
Only Enter is not working...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)