Forum Moderators: open

Message Too Old, No Replies

Ampersand line break?

format a line break inside a textarea

         

McIntyre

12:33 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



Is there an ampersand version of "<br>" (i.e. &nbsp, &quot, etc)? I have this JavaScript to make a textarea read
Heading:
Blah blah.

text1.value="Heading:<br>Blah blah."

but the textarea displays "<br>" as part of the text. If there was something like "&break" I could have

text1.value="Heading:&breakBlah blah.".

gph

12:59 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



\n

McIntyre

1:07 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



great. Thanks

McIntyre

1:09 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



It doesn't work.

McIntyre

1:10 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



Oh, now it does. "\" wrong way around.

DrDoc

6:07 am on Apr 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



&#13; should work too :)