I've created a table object this way: var tab = document.createElement("table")I tried to insert the tab object into a div this way: document.getElementById("divname").innerHTML = tabBut it doesn't work. Appear the following mesage in the Firefox: [object HTMLTableElement]