hello,
i have a function in javascript. when someone clicks on a link the text in a
layer changes.
i want breaks in the text, in html you would use '<br><br>'.
i tried this in the variable that contains the text but it does not work.
so my question is: how do i get these breaks in the text, so that the text
looks
good in the layer?.
here is my code:
+++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++++
function toonSpelregels( spel){
if(spel == 'zappen'){
document.getEle mentById('spelr egels').style.v isibility =
'visible';
verkort = document.getEle mentById('spelr egels').childNo des[0];
uitleg="blabla. ......." + "<br><br>" + " blabla....";
verkort.nodeVal ue=uitleg;
}
.............
.............
}
<div id="spelregels" >
</div>
+++++++++++++++ +++++++++++++++ +++++++++++++++ ++++++++++++++
thanks,
fjodor
i have a function in javascript. when someone clicks on a link the text in a
layer changes.
i want breaks in the text, in html you would use '<br><br>'.
i tried this in the variable that contains the text but it does not work.
so my question is: how do i get these breaks in the text, so that the text
looks
good in the layer?.
here is my code:
+++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++++
function toonSpelregels( spel){
if(spel == 'zappen'){
document.getEle mentById('spelr egels').style.v isibility =
'visible';
verkort = document.getEle mentById('spelr egels').childNo des[0];
uitleg="blabla. ......." + "<br><br>" + " blabla....";
verkort.nodeVal ue=uitleg;
}
.............
.............
}
<div id="spelregels" >
</div>
+++++++++++++++ +++++++++++++++ +++++++++++++++ ++++++++++++++
thanks,
fjodor
Comment