最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

insertRow Method

Internet Development Index

Creates a new row (tr) in the table, and adds the row to the rows collection.

Syntax

oTR = object.insertRow( [iIndex])

Parameters

iIndex Optional. Integer爐hat specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.

Return Value

Returns the tr element object if successful, or null otherwise.

Remarks

If you insert a row in a tFoot, tBody, or tHead, you also need to add the row to the rows collection for the table. If you insert a row in the table, you also need to add the row to the rows collection for the tBody. If you specify an index, the index should be relative to the rows collection for the element that first contains the tr. For example, if you call this method for a tBody, you must specify an index value relative to the rows collection that is on the tBody, not the table.

The preferred technique for inserting a row is to add the row at the end of the rows collection. It is faster to add a row at the end of a table than somewhere in the middle. To add a row at the end of the collection, specify the -1 value, or the length of the rows collection minus 1.

Example

This example uses the insertRow method to add a row to the table.

myNewRow = document.all.myTable.insertRow()

Standards Information

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

TABLE, TBODY, TFOOT, THEAD

See Also

rowIndex, rows, sectionRowIndex
新泰市| 汾阳市| 夹江县| 彭泽县| 沁水县| 鹤庆县| 额尔古纳市| 磴口县| 巩义市| 张北县| 涞源县| 清水河县| 台前县| 循化| 东安县| 新营市| 铁岭县| 邢台市| 沈阳市| 克什克腾旗| 旬邑县| 阿勒泰市| 西乌珠穆沁旗| 孝昌县| 衢州市| 长乐市| 铜山县| 长宁区| 马公市| 永城市| 南京市| 皮山县| 乌鲁木齐县| 加查县| 峨眉山市| 井研县| 闵行区| 青铜峡市| 景泰县| 钟祥市| 遵义县|