Compare Revisions

HTMLTableElement.deleteRow()

Revision 143657:

Revision 143657 by RobG on

Revision 143658:

Revision 143658 by CHaoSlayeR on

Title:
table.deleteRow
table.deleteRow
Slug:
DOM/table.deleteRow
DOM/table.deleteRow
Tags:
DOM, Gecko, "Gecko DOM Reference"
DOM, Gecko, "Gecko DOM Reference"
Content:

Revision 143657
Revision 143658
n10    <h3 name="Summary">n10    <h3 id="Summary" name="Summary">
n14      <b>deleteRow</b> removes a row from the table.n14      <strong>deleteRow</strong> removes a row from the table.
n16    <h3 name="Syntax">n16    <h3 id="Syntax" name="Syntax">
n20<i>HTMLTableElement</i>.deleteRow(<i>index</i>)n20<em>HTMLTableElement</em>.deleteRow(<em>index</em>)
n22    <h3 name="Parameters">n22    <h3 id="Parameters" name="Parameters">
23      Return Value
24    </h3>
25    <p>
26      no return value
27    </p>
28    <h3 id="Parameters" name="Parameters">
n25    <ul>n31    <div style="margin-left: 2em">
26      <li>
27        <code>index</code> is a number representing the row that 32      <code>index</code> is an integer representing the row that 
>should be deleted.>should be deleted.<br>
33      However, the special index <span style="font-family: Courie
 >r New;">-1</span> can be used to remove the very last row of a ta
 >ble.
28      </li>34    </div>
29    </ul>
30    <h3 name="Example">35    <h3 id="Example" name="Example">
n37    <h3 name="Specification">n42    <h3 id="Specification" name="Specification">
43      Exceptions
44    </h3>
45    <ul>
46      <li>
47        <span style="font-family: Courier New;">INDEX_SIZE_ERR</s
 >pan><br>
48        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 <span style="font-family: Courier New;">-1</spa
 >n>
49      </li>
50    </ul>
51    <h3 id="Specification" name="Specification">
tt55      &nbsp;
41      <a class="external" href="http://www.w3.org/TR/DOM-Level-2-56    </p><a class="external" href="http://www.w3.org/TR/DOM-Level-
>HTML/html.html#ID-13114938">deleteRow</a>>2-HTML/html.html#ID-13114938">deleteRow</a>
42    </p>

Back to History