HTMLTableElement.insertRow()

  • Revision slug: DOM/table.insertRow
  • Revision title: table.insertRow
  • Revision id: 4293
  • Created:
  • Creator: JesseW
  • Is current revision? No
  • Comment missing spec

Revision Content

Summary

insertRow inserts a new row in the table.

Syntax

row = table.insertRow(index)

Parameters

  • index is a number representing where in the table to insert the new row.
  • row is an HTMLElement.

Example

newrow = mytable.insertRow(0);
// insert a new first row

Revision Source

<p>
</p>
<h3 name="Summary">Summary</h3>
<p><b>insertRow</b> inserts a new row in the table. 
</p>
<h3 name="Syntax">Syntax </h3>
<pre class="eval"><i>row</i> = table.insertRow(<i>index</i>)
</pre>
<h3 name="Parameters">Parameters </h3>
<ul><li><code>index</code> is a number representing where in the table to insert the new row.
</li><li><code>row</code> is an HTMLElement.
</li></ul>
<h3 name="Example">Example </h3>
<pre class="eval">newrow = mytable.insertRow(0);
// insert a new first row
</pre>
Revert to this revision