Add rows:
<html>_x000D_
<script>_x000D_
function addRow() {_x000D_
var table = document.getElementById('myTable');_x000D_
//var row = document.getElementById("myTable");_x000D_
var x = table.insertRow(0);_x000D_
var e = table.rows.length-1;_x000D_
var l = table.rows[e].cells.length;_x000D_
//x.innerHTML = " ";_x000D_
_x000D_
for (var c=0, m=l; c < m; c++) {_x000D_
table.rows[0].insertCell(c);_x000D_
table.rows[0].cells[c].innerHTML = " ";_x000D_
}_x000D_
}_x000D_
_x000D_
function addColumn() {_x000D_
var table = document.getElementById('myTable');_x000D_
for (var r = 0, n = table.rows.length; r < n; r++) {_x000D_
table.rows[r].insertCell(0);_x000D_
table.rows[r].cells[0].innerHTML = " ";_x000D_
}_x000D_
}_x000D_
_x000D_
function deleteRow() {_x000D_
document.getElementById("myTable").deleteRow(0);_x000D_
}_x000D_
_x000D_
function deleteColumn() {_x000D_
// var row = document.getElementById("myRow");_x000D_
var table = document.getElementById('myTable');_x000D_
for (var r = 0, n = table.rows.length; r < n; r++) {_x000D_
table.rows[r].deleteCell(0); // var table handle_x000D_
}_x000D_
}_x000D_
</script>_x000D_
_x000D_
<body>_x000D_
<input type="button" value="row +" onClick="addRow()" border=0 style='cursor:hand'>_x000D_
<input type="button" value="row -" onClick='deleteRow()' border=0 style='cursor:hand'>_x000D_
<input type="button" value="column +" onClick="addColumn()" border=0 style='cursor:hand'>_x000D_
<input type="button" value="column -" onClick='deleteColumn()' border=0 style='cursor:hand'>_x000D_
_x000D_
<table id='myTable' border=1 cellpadding=0 cellspacing=0>_x000D_
<tr id='myRow'>_x000D_
<td> </td>_x000D_
<td> </td>_x000D_
<td> </td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td> </td>_x000D_
<td> </td>_x000D_
<td> </td>_x000D_
</tr>_x000D_
</table>_x000D_
</body>_x000D_
</html>
_x000D_
And cells.