Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Moves a table row to a new position.
Syntax
oRow = object .moveRow( iSource , iTarget )Parameters
iSource | Required. Integer that specifies the index in the rows collection of the table row that is moved.
|
||
iTarget | Required. Integer that specifies where the row is moved within the rows collection.
|
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.
Example
This example uses the moveRow method to exchange the first and second rows in a table when the user clicks a button.
<SCRIPT>Standards Information
There is no public standard that applies to this method.
Applies To
|
TABLE , TBODY , TFOOT , THEAD |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |