function outer() { var trr = document.getElementById('trr'); trr.cells[0].innerHTML = 'Petrov'; trr.cells[1].innerHTML = 'Sergej'; var trr2 = trr.parentNode.insertRow(trr.rowIndex + 1); trr2.id = 'trr2'; }