View Full Version : 2 second question

03-23-2005, 01:51 AM
I know, this is a no brainer, but I forgot.

I have a javascript confirm box, how do i make the text on it drop to the next line on command? I.E. If I wanted to write on it:

*Hi there, this is some sample text!*

But wanted to to appear like

*Hi there, this is
some sample text!*

how would i go about doing that? I know its something simple, I'm just having a brain fart here.

03-23-2005, 02:00 AM
"Hi there, this is\nsome sample text!"

But take note that confirm box in IE can only accomodate few lines.