|
-
case String.fromCharCode(13) ??
Hi,
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);
break;
All other chars work fine es:
case String.fromCharCode(32) :
w = w+String.fromCharCode(32);
break;
Only Enter is not working...
Any idea?
thx
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks