<table border="1">
<tr>
<td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td>
</tr>
</table>
<script>
var table = document.getElementsByTagName("table")[0];
table.addEventListener("click", function () {
this.innerHTML += "<tr><td></td><td></td><td></td><td></td><td></td><td></td></tr>";
this.innerHTML += "<tr><td></td><td></td><td></td><td></td><td></td><td></td></tr>";
}, true);
</script>