How to put an enter in a string in javascript
Printable View
How to put an enter in a string in javascript
There's a lot about Javascript here
Thanx, there's a lot there too!.
I was'nt looking for the good, i was searching for enter,
instead of carriage,
does it show i'm french
On the site above if you search "Enter" you get 172 Q & A dealing with the matter. If you look, you may find what you need.
Enter
btw:
What exactly is the question.
Do you want to store the word enter in a string.
or
Do you want to know how to create and use an enter button?
[Edited by HeSaidJoe on 11-28-2000 at 09:44 AM]
There should be a way to enter ASCII codes in Java, which means you can try ASCII code 13 line Chr(13).
Hope this helps.
try using \n in the string
So "whatsup\n dude"
will come out as:-
whatsup
dude
As per Asc 13 is interperted differently in Netscape and in MSIE..but this might give you some insight as the question deals with verifying an enter keypress. You may be able to reverse the process and create one.