L
lhjayunaz
<div id=why>thank you</div>
<script>
var convertnow = "hello hello";
document.getElementById("why").innerHTML = "<PRE>" + convertnow + "</
PRE>"
</script>
Other than wrapping PRE tags, how can I preserve the whitespacing in
this innerHTML construction?
<script>
var convertnow = "hello hello";
document.getElementById("why").innerHTML = "<PRE>" + convertnow + "</
PRE>"
</script>
Other than wrapping PRE tags, how can I preserve the whitespacing in
this innerHTML construction?