I am adding rows to an existing table using Javascript.
The rows display properly, but the javascript I have assigned to handle the onmouseover event is not invoked.
The code I use is the following:
rowNewRow.setAttribute('onmouseover',"rowMOver('2')");
rowNewRow being the variable pointing to the row.
I have also tried:
rowNewRow.onMouseOver = "rowMOver('2')";
After I do this, the value of tblTable.innerHTML shows that the event handler is there in the HTML but it does not get invoked. I have put the same code into the HTML at design time and that works.
Any one have any ideas?
Thanks,
John
The rows display properly, but the javascript I have assigned to handle the onmouseover event is not invoked.
The code I use is the following:
rowNewRow.setAttribute('onmouseover',"rowMOver('2')");
rowNewRow being the variable pointing to the row.
I have also tried:
rowNewRow.onMouseOver = "rowMOver('2')";
After I do this, the value of tblTable.innerHTML shows that the event handler is there in the HTML but it does not get invoked. I have put the same code into the HTML at design time and that works.
Any one have any ideas?
Thanks,
John