let me give more details:
I have a table with some columns and one column has a link. On click of this link I have to display the details of the current row in a child window. For that I have called a Javascript function to which I have passed the row number which I have obtained by the loop counter when I am building the Table contents.
Till this point every thing is fine, But I have a reorder functionality also where a user can select a row and enter the row number where the selected row has to be moved. For that I have used the in built function moveRow().
By using this I am able to move the row to the entered position. Now since the innerHTML is copied for each row, I still Have the row number of the old row, so When I click on the Link it displays the contents of the old row rather than the row in which the link is clicked.