[Javascript] DHTML and table cells
Peter-Paul Koch
gassinaumasis at hotmail.com
Tue Oct 2 02:34:13 CDT 2001
>Actually I don't know why the code works at all because .getElementById
>should reference the table and not the row.
Then put the ID="row" in the TABLE tag, not in the TR tag.
>Any help would be appreciated.
>
>Bill
>******************************************
>JAVASCRIPT
>var tableElement = document.getElementById("row");
>var lastRow = tableElement.lastChild;
>var newRow = tableElement.cloneNode(lastRow
var newRow= lastRow.cloneNode(true);
>tableElement.appendChild(newRow);
For this kind of syntax stuff, see
http://www.xs4all.nl/~ppk/js/index.html?version5.html
ppk
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
More information about the Javascript
mailing list