var td = document.createElement('td'); td.addClassName('headcol'); td.innerHTML += '
'; test = $('table').getElementsByClassName('defaultRowHeight'); test.appendChild(td);