Shirenseru said the following on 5/2/2006 9:07 AM:
> Hello guys, i hope you can help me with this cause it's driving me
> crazy!
>
> I got the following statement in JavaScript:
>
> if(currTotal < 27{document.getElementById('isResult').innerHTML =
> "Blabla, blablabla, 12345")
>
> it displays the message as:
>
> Blabla, blablabla, 12345
>
> But i would like to break it up into three lines, so it would be
> displayed as:
>
> Blabla,
> blablabla,
> 12345
>
> Is there anyone that knows how to fix this? I tried \n , but with no
> result..
>
Add a <br> or <p> to it as you are rendering HTML and \n is not a new
line in HTML. \n will add a new line to the source though.
"Blabla,<br> blablabla,<br> 12345<br>"
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/