How to Add a 'new line' to output stream ?

Hello ,
I am printing my webpage with .js ,
and I want to force a new line after each printed object .

                    for (var i = 0; i < copyFrom.length; i++) {
                      MyDiv[i].style.display = "none";
                      collectedTextareas = collectedTextareas + copyFrom[i].value;
/*					  
					  collectedTextareas = collectedTextareas = + " 
";
*/
                     }

Above I tried to just copy a blank line ending with “Enter-key” , it runs fine But doesn’t cause ‘new line’ .
Is there a Hex-value I could put in output stream ?
https://vmars.us/freeware/FreshDraft/FreshDraft–03.15.23.html
Thanks for your Help…

At the location you are specifying the string to insert, add the \r\n characters for a line break:

myTextArea.value += text + '\r\n';

:slight_smile:

Ah , perfect , Thanks
https://vmars.us/freeware/FreshDraft/FreshDraft.html

1 Like

If you want to get more fancy in the future, then you can do something similar to what I describe here :slight_smile: