javascript stealing whitespace shouldn't?


i have html record formula identical following.



<table>
<tr>
<td id="mycell">hello world</td>
</tr>
</table>


i am controlling javascript following value



document.getelementbyid(cell2.element.id).innertext


this advantage calm "hello world" wholly 1 space between hello world. i contingency keep same array spaces, there any proceed done?



i've attempted controlling innerhtml, outerhtml identical items, nonetheless i'm carrying luck.



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?