[Javascript] copy THEAD with DOM
Peter-Paul Koch
gassinaumasis at hotmail.com
Wed Feb 6 07:02:58 CST 2002
>I'm working with IE; I have 2 tables:
>
><TABLE id="upTbl">
></TABLE>
>
><TABLE id="downTbl">
> <THEAD id="downTblHead">
> ...
> </THEAD>
></TABLE>
>
>
>How can I copy (with DOM) the THEAD of the second table (downTblHead) to
>the first table?
Untested:
var x = document.getElementById('downTblHead').cloneNode(true);
document.getElementById('upTbl').tHead = x;
ppk
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the Javascript
mailing list