DOM HTMLTableElement issue

Hi there,

I try to apply following table setup

	function insRow()
	{
	var x=myTable.insertRow(myTable.rows)
	var y=x.insertCell(0)
	var z=x.insertCell(1)
	y.innerText="r1 NEW CELL1"
	z.innerText="r1 NEW CELL2"
	var x=myTable.insertRow(myTable.rows)
	var y=x.insertCell(0)
	var z=x.insertCell(1)
	y.innerText="r2 NEW CELL1"
	z.innerText="r2 NEW CELL2"
	}

But it seems as if R2 displays before R1.

Is there a property or method I should be using to revert row order ?

Patrick.

Received on Friday, 20 September 2002 11:00:48 UTC