A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/HTMLTableElement/deleteRow below:

deleteRow ยท WebPlatform Docs

deleteRow

Method of dom/HTMLTableElementdom/HTMLTableElement

Syntax
var object = object.deleteRow(index);
Parameters index
Data-type
any

Integer that specifies the zero-based position in the rows collection of the row to remove.

Return Value

Returns an object of type DOM NodeDOM Node

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

This example uses the deleteRow method to delete the specified row (tr) in the table.

document.all.myTable.deleteRow()
Notes Remarks

If you delete a row from a tFoot, tBody, or tHead, you also remove the row from the rows collection for the table. Deleting a row in the table also removes a row from the rows collection for the tBody. If you delete a row from a tFoot, tBody, or tHead, index must contain the sectionRowIndex of the tr. When deleting a row from the table, index must contain the rowIndex of the tr.

Syntax Standards information See also Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4