HBCMS更多的中文手册参考:

moveRow Method

DHTML文档教程

Moves a table row to a new position.

dhtml语法

orow = object.moverow(isource, itarget)

parameters

iSource Required. Integerthat specifies the index in the rows collection of the table row that is moved.
-1Default.
iTarget Required. Integerthat specifies where the row is moved within the rows collection.
-1Default.

Return Value

Object. Returns a reference to the table row that is moved.

Remarks

Rows between the iSource and iTarget positions in the rows collection are shifted based on the direction the row moves.

DHTML代码范例

This example uses the moveRow method to exchange the first and second rows in a table when the user clicks a button.

<SCRIPT>
function fnMove(){
oTable.moveRow(0,1);
}
</SCRIPT>
<INPUT TYPE="button" VALUE="Change Rows" onclick="fnMove()">
<TABLE ID="oTable">
<TR><TD>Cell 1, Row 1</TD></TR>
<TR><TD>Cell 1, Row 2</TD></TR>
</TABLE>

是否符合公共标准

There is no public standard that applies to this method.

Applies To

TABLE, TBODY, TFOOT, THEAD