[Javascript] copy THEAD with DOM

Dan Costea costea at ssi-schaefer-noell.com
Wed Feb 6 07:46:59 CST 2002


It's working!
Thank you.

Dan.

>
> >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
>





More information about the Javascript mailing list