Try this... it works for me
var x = document.createTextNode('your text to go in table');
var tbl = document.getElementById('tableID')
tbl.insertRow(0).appendChild(x);
the 0 means that the row will be inserted at the top. You can also leave off the appendChild.
Hope this helps.