Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. table.deleteRow

« Gecko DOM Reference

Summary

deleteRow removes a row from the table.

Syntax

HTMLTableElement.deleteRow(index)

Return Value

no return value

Parameters

    index is an integer representing the row that should be deleted.
    However, the special index -1 can be used to remove the very last row of a table.

Example

mytable.deleteRow(1);
// delete the second row

Exceptions

  • INDEX_SIZE_ERR
    thrown if the specified index is greater or equal to the number of available rows or when it is negative and not equal to the special index -1

Specification

 

deleteRow

Page last modified 11:39, 25 Sep 2008 by CHaoSlayeR

Files (0)