Cell table expand when use innerText
I have table:
<table width="500" border="1">
<td width="90" id="mk"> </td>
<td width="394"> </td>
and button with onClick even:
<input type="button" name="insert" value="insert" onClick="document.all.mk.innerText='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa '">
BUT width of cell will expand enough for string
I want when insert, height of cell is changed, width of cell isn't changed
I think must be table attribute to solve this problem.
I have found, but I see nothing
So what should I do
Please help me
Thanks a lot
Do you get the same effect when
onClick="document.all.mk.innerText='aaaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaaa aaaaa aaaaa aaaaa aaaaa aa'">
(space location is arbituary)?
And use element.firstChild.data (or element.firstChild.nodeValue) or even element.innerHTML (not standard but crossbrowser) methods but not innerText
Last edited by Kor; 09-23-2006 at 01:16 PM.
Thanks alot, very simple if I have a string with space " "
Originally Posted by JMRKER
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)