Results 1 to 2 of 2
Thread: <br> in DHTML text replacement?
Mar 5, 2002, 07:30 #1
<br> in DHTML text replacement?
Figured this section was as close to DHTML as it gets here, so...
I'm trying to replace some text in a span (id="description1") using the following script:
onclick="description1.innerText='Blurb One.<br><br><br>Blurb Two.';"
The idea is to have 'Blurb One' followed by 3 linebreaks then 'Blurb Two', so Blurb Two is 3 lines lower.
The text is being replaced, but is showing each <br> as text on one line, rather than using them as linebreaks.
So basically I'm looking for the way to have linebreaks in this script.
Mar 5, 2002, 07:51 #2