I am dynamically adding columns to a table by using document.createElement(\"th\")
document.createElement(\"th\")
var newTH = document.createElement(\'th\');
var newTH = document.createElement('th'); newTH.addEventListener( 'click', function(){ // delete the column here } );