[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CRLF in a textarea

When adding text to a textarea object like this:
  document.form[0].textAreaThing.value += 'I am line one\nI am line two';
the \n (newline) doesn't give the desired effect. It doesn't wrap the text
to the next line. I have also tried \x13\x10 (CRLF) instead of the newline
escape. It doesn't work either. Can anyone shed some light? Is there a way
to force wrapping of text in a textarea object?

William Isenberger
Director of Marketing and Sales
AXIS Web Publishing
Voice: 206-729-0550

This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.