Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Line break
- From: javascript@xxxxxxxxxx (Peter Brunone)
- Subject: [Javascript] Line break
- Date: Thu, 28 Jun 2001 18:23:46 -0500
Andrew,
I'm not sure if this is precisely what you're getting at, but adding a
hard carriage return to a textarea can be accomplished like this:
<SCRIPT LANGUAGE="JavaScript">
function addCR() {
document.bob.myText.value = document.bob.myText.value + "\n";
}
</SCRIPT>
<FORM NAME="bob">
<TEXTAREA NAME="myText"></TEXTAREA>
<BR>
<INPUT TYPE="BUTTON" onClick="addCR()" VALUE="return">
</FORM>
Still don't know what exactly the <end> is supposed to signify; if I got
it wrong let me know...
Cheers,
Peter
----- Original Message -----
From: "Andrew Gibson" <andyg@xxxxxxxxxx>
To: <javascript@xxxxxxxxxx>
Sent: Thursday, June 28, 2001 6:15 PM
Subject: [Javascript] Line break
> How do I add a line break.
>
> I want to change the contents of a text area from, say
>
> mycomment
>
> to
>
> mycomment
> <end>
>
> Thanks
> Andrew
- Follow-Ups:
- [Javascript] flash v dhtml
- From: Andrew Dunn
- [Javascript] flash v dhtml
- References:
- [Javascript] Line break
- From: Andrew Gibson
- [Javascript] Line break
- Prev by Date: [Javascript] Line break
- Next by Date: [Javascript] flash v dhtml
- Previous by thread: [Javascript] Line break
- Next by thread: [Javascript] flash v dhtml
- Index(es):