I am trying to write a bunch of text onto a new document using document.write() and somehow need to format it to include line breaks.
I have tried including \
, and it does not work. I have also tried document.writeln() and that also does not work.
From what I have found on the Internet, one (if not both) of those methods should have worked.. :sick:
The alternative is to use a proper HTML line break - <br>
Thanks, using document.write('<pre>') worked.
If you want to format document with line breaks than you need to put that text into element pre
how are you
are you ok
sow when you are using document.write do it with this logic
from here \\r\