Re: use javascript to change <Td nowrap>
- From: "Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx>
- Date: 15 Sep 2006 14:26:40 GMT
Katie wrote on 15 sep 2006 in comp.lang.javascript:
Hi,
I was wondering is there any way to change the width property of a
table cell <Td id="test"> to no wrap by using
document.getElementById(test).SOMEMETHOD
<script type='text/javascript'>
function toggleIt() {
var myDiv = document.getElementById('myDiv')
myDiv.noWrap = ! myDiv.noWrap
}
</script>
<input type='button' value='Toggle' onclick='toggleIt();'>
<br><br>
<div id='myDiv' style='width:50px;border:black 2pt dotted;'>
This is a wrap to nowrap test
</div>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
.
- References:
- use javascript to change <Td nowrap>
- From: Katie
- use javascript to change <Td nowrap>
- Prev by Date: use javascript to change <Td nowrap>
- Next by Date: How do i re-assign a parentNode
- Previous by thread: use javascript to change <Td nowrap>
- Next by thread: How do i re-assign a parentNode
- Index(es):