May 3, 2001 #1 DrAsh Technical User May 3, 2001 46 US I want to split text in a javascript write command. Currenlty it says document.writeln ("<font size=3 face='Arial Black' color=003399> Congratulations "+whatName+"!" i want it to print whatname on the next line, not hte same.
I want to split text in a javascript write command. Currenlty it says document.writeln ("<font size=3 face='Arial Black' color=003399> Congratulations "+whatName+"!" i want it to print whatname on the next line, not hte same.
May 3, 2001 #2 jaredn Programmer Sep 1, 1999 1,506 US since you are really writing HTML here, just use <br>> tag. In textareas, etc, to force a line break use \n> document.writeln ("<font size=3 face='Arial Black' color=003399> Congratulations<br> "+whatName+"!" jared@eae.net - http://webfx.eae.net Upvote 0 Downvote
since you are really writing HTML here, just use <br>> tag. In textareas, etc, to force a line break use \n> document.writeln ("<font size=3 face='Arial Black' color=003399> Congratulations<br> "+whatName+"!" jared@eae.net - http://webfx.eae.net
May 3, 2001 #3 tsdragon Programmer Dec 18, 2000 5,133 US Try adding "\n" to the string where you want it to break. If that doesn't work, try adding "<br>". Tracy Dryden tracy@bydisn.com Meddle not in the affairs of dragons, For you are crunchy, and good with mustard. Upvote 0 Downvote
Try adding "\n" to the string where you want it to break. If that doesn't work, try adding "<br>". Tracy Dryden tracy@bydisn.com Meddle not in the affairs of dragons, For you are crunchy, and good with mustard.
May 3, 2001 #4 jaredn Programmer Sep 1, 1999 1,506 US the first part of my last post should look like: since you are really writing HTML here, just use <br> tag. In textareas, etc, to force a line break use \n jared@eae.net - http://webfx.eae.net Upvote 0 Downvote
the first part of my last post should look like: since you are really writing HTML here, just use <br> tag. In textareas, etc, to force a line break use \n jared@eae.net - http://webfx.eae.net