alert("Some string\nNew line with another string");
Note the new line character (\n). You can also use \r for return, \t for tab
etc
/Robert
-----Original Message-----
From: Chris Thompson [mailto:mail@t...]
Sent: den 2 oktober 2001 10:58
To: JavaScript HowTo
Subject: [javascript_howto] carriage return
I have 2 strings I am putting into a message box (window.alert). I want
to put a carriage reutn/line feed between them. I know how to do it in
ASP, but it is not working cause I am writing to a webpage and it just
makes the source code contain the carriage return and line feed versus
passing it on to the Javascript to pass onto the alert(messagebox) If
anyone has a know how of how to just print an ascii character in
Javascript, that would be appreciative.
Thanks in advance.
Chris