Basic JavaScript Example:
CODE
var table = document.createElement("table"); // Create a table element.
var rowGroup = document.createElement("tbody"); Create a table row group element.
var row = document.createElement("tr"); // Create a table row element.
var dataCell = document.getElement("td"); // Create a table data cell element.
var text = document.createTextNode("Example Text"); // Create a text node.
dataCell.appendChild(text); // Put the text into the table data cell element.
row.appendChild(dataCell); // Put the table data cell element into the row element.
rowGroup.appendChild(row); // Put the table row element into the table row group element.
table.appendChild(rowGroup); // Put the table row group element into the table element.
document.getElementsByTagName("body")[0].appendChild(table); // Put the table element into the document body element.
// You now have a one‐cell table element as the last item of the document body element.
This example shows you how you would create a table element (or any other element) in JavaScript via the DOM. It you want help more specific to your issue, then I would suggest that you follow previous advice and show us the code for your personal attempt to solve your issue.