Add Rows to an Existing Table

This is an example of dynamically adding rows to an existing HTML table. The function addRow() first creates a new row object, then creates two new table cell objects. Once these have been created, the table cell objects are added to the row object and the row object is added to the table.

NameEmail
Andrew Stoneastone@nowhere.com
Ima Pseudonymap@nowhere.com



You can copy the page html from the textarea below and save it to your local system.