Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLTableElement.deleteRow()

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

The HTMLTableElement.deleteRow() method removes a row from the table. If the amount of rows to delete, specified by the parameter, is greater or equal to the number of available rows, or if it is negative and not equal to the special index -1, representing the last row of the table, the exception INDEX_SIZE_ERR is thrown.

Syntax

HTMLTableElement.deleteRow(index)

Return Value

no return value

Parameters

index
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

Specification

문서 태그 및 공헌자

 이 페이지의 공헌자: teoli, kscarfone, Sheppy, ethertank, CHaoSlayeR, RobG, Dria, JesseW
 최종 변경: teoli,