My delete row codings:
var tbl = document.getElementById('tblFilter');
var lastRow = tbl.rows.length;
if (lastRow > 2) tbl.deleteRow(lastRow - 1);
if anybody knows pls help me.