jrlaughlin
Programmer
Hello all.
Here is my situation. I'm inserting a row into a table from a child window using javascript. The following code assumes that the variable "table" has been defined.
Then I go on to add some cells to the row and content in the cells. Then I close the child window and I am looking at the table with the new row.
My problem is that when I click on the new row, the onclick event seems to not be firing.
Any help would be appreciated.
James.
Here is my situation. I'm inserting a row into a table from a child window using javascript. The following code assumes that the variable "table" has been defined.
Code:
row = table.insertRow(-1);
row.onclick = 'java script:alert("hi")';
Then I go on to add some cells to the row and content in the cells. Then I close the child window and I am looking at the table with the new row.
My problem is that when I click on the new row, the onclick event seems to not be firing.
Any help would be appreciated.
James.