Skip To Next Line In A textarea?

How Can I Send A "Skip To New Line" Command In A textarea.
For Example:
document.testbox.text.value = document.testbox.text.value + "next line command" + newtext;
Please Let Me Know If And How This Can Be Done Or How Come This Can't Be Done.
otto

refrAsked:
Who is Participating?
 
cyberwizzConnect With a Mentor Commented:
You can use

\n   -   New line
\t    -   Tab

document.testbox.text.value = document.testbox.text.value + "\n" + newtext;
0
 
refrAuthor Commented:
I THought I Tried That But Aperently I Must Have Been Using /n Instead.
Thanks
0
 
cyberwizzCommented:
It's a common mistake to do the other slash. In fact when I submitted the answer I almost put the wrong one down. :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.