deleteRow method (table, tbody, tfoot, thead)
You can find the related objects in the Supported by objects section below.
|Required in Firefox and Opera, optional in Internet Explorer, Google Chrome and Safari. Zero-based integer that specifies the position of the row to delete in the rows collection of the current element. The value of -1 can also be used; in that case, the last row will be deleted. If this parameter is not specified, the deleteRow method removes the last row in Internet Explorer and the first row in Google Chrome and Safari.|
This method has no return value.
Example HTML code 1:
This example illusrates the use of the deleteRow method:
Did you find this example helpful?
User Contributed Comments