The deleteRow() method removes the row at the specified index from a table.
|index||An integer that specifies the position of the row to delete (starts
at 0). The value of -1 can also be used; which result in that the last
row will be deleted.
This parameter is required in Firefox and Opera, but optional in Internet Explorer, Chrome and Safari.
If this parameter is omitted, deleteRow() removes the last row in IE and the first row in Chrome and Safari.
The deleteRow() method is supported in all major browsers.
Delete the first row in the table:
Delete the row you click on
This example uses deleteRow() to delete the row you click on.
Your message has been sent to W3Schools.