HTMLTableElement.deleteRow()

  • Revision slug: DOM/table.deleteRow
  • Revision title: table.deleteRow
  • Revision id: 143656
  • Created:
  • Creator: RobG
  • Is current revision? No
  • Comment /* Example */ Added link to W3C sepc

Revision Content

{{template.DomRef()}}

Summary

deleteRow removes a row from the table.

Syntax

table.deleteRow(index)

Parameters

  • index is a number representing the row that should be deleted.

Example

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

Specification

deleteRow

Revision Source

<p>
{{template.DomRef()}}
</p>
<h3 name="Summary">Summary</h3>
<p><b>deleteRow</b> removes a row from the table. 
</p>
<h3 name="Syntax">Syntax </h3>
<pre class="eval">table.deleteRow(<i>index</i>)
</pre>
<h3 name="Parameters">Parameters </h3>
<ul><li><code>index</code> is a number representing the row that should be deleted.
</li></ul>
<h3 name="Example">Example </h3>
<pre class="eval">mytable.deleteRow(1);
// delete the second row
</pre>
<h3 name="Specification">Specification</h3>
<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-13114938">deleteRow</a>
</p>
Revert to this revision