If I undestand you correctly, you're trying to add an element at a specific point in the DOM? First, call dovument.createElement to actually create it, specify the attributes you would like, then get a reference to the table's intended parent using document.getElementById, then call parent.appendChild(element)
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox