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 insertRow() method inserts a new empty table row. Retrieve the second TABLE element and invoke the insertRow() method with an index of 0. Currently the zero indexed row is in the THEAD section of the TABLE. The number of rows in the THEAD section before insertion of the new row is one. After the new row is inserted the number of rows in the THEAD section is two.