PDA

View Full Version : multiline alert


amolmali
01-29-2003, 08:02 AM
How to create a multiline alert dialog box with JavaScript?The one Im trying to use is one long string of text...how can I script a carriage return?

Dr. Web
01-29-2003, 12:13 PM
\n = newline
\t = tab

alert("this is a alert\n\n\nwith some newlines in it.\nand some\ttabs\ttabs\ttabs");

amolmali
01-29-2003, 11:08 PM
Thanx Dr. Web.

Dr. Web
01-29-2003, 11:11 PM
not a problem!