Id Name Position Salary
Table Caption
Employee Id Employee Name Position Salary Gender Address
next page ... next page ... next page ... next page ... next page ... next page ...
EMP0001 Margaret Martin Accountant 56,000 Female 1230 North Ave. Dallas, Texas 98551
EMP0002 Martha Raynolds Secretary 35,000 Female 1900 Dallas Road Dallas, Texas 98554

The deleteCell() method deletes a cell from the currtent row. If the index is -1 the last cell in the row is deleted. Retrieve the fourth TR element and examine the value of the cells length attribute which should be set to six. Check the value of the last TD element. Invoke the deleteCell() with an index of negative one which will delete the last cell in the row. Check the value of the of the last cell and also the numbers of cells should now be five.