L
Louis.
Hello,
If the user clicks a link in my webpage then a text gets updated.
However, one text is too long and I need to put a HTML line-break into
it. When I stick in a <br> the <br> will simply appear in the web
page. I have no idea how to make the browser interpret the <br>.
I know there is a workaround solution by putting the text in a
invisible table cell. However, then I cannot set where the lines
break.
I hope somebody can help me.
TIA,
Louis.
<script language="Javascript">
function ChangeText(card) {
if (card=='01') { document.werk.src='images/s01.jpg'; var
newdescription="Nice card."; }
if (card=='02') { document.werk.src='images/s02.jpg'; var
newdescription="This card is special, it comes in various sizes and
various colours.<br>There is also an envelloppe available for this
card."; }
var omschrijving = document.getElementById("omschrijving");
omschrijving.firstChild.nodeValue=newdescription;
}
</script>
If the user clicks a link in my webpage then a text gets updated.
However, one text is too long and I need to put a HTML line-break into
it. When I stick in a <br> the <br> will simply appear in the web
page. I have no idea how to make the browser interpret the <br>.
I know there is a workaround solution by putting the text in a
invisible table cell. However, then I cannot set where the lines
break.
I hope somebody can help me.
TIA,
Louis.
<script language="Javascript">
function ChangeText(card) {
if (card=='01') { document.werk.src='images/s01.jpg'; var
newdescription="Nice card."; }
if (card=='02') { document.werk.src='images/s02.jpg'; var
newdescription="This card is special, it comes in various sizes and
various colours.<br>There is also an envelloppe available for this
card."; }
var omschrijving = document.getElementById("omschrijving");
omschrijving.firstChild.nodeValue=newdescription;
}
</script>