I have a javascript function for calculating sum of values in row and colom of a table. It is using get element by id table name. So is table specific.
I am calling that function every time a value changes in the table by
<td><input type="text" value="0" size = "2" onchange="doAdd(this)" ></td>
Bu the problem is I even want to call that fucntion at the very start of the page it as soon as my table loads beacuse it has some existing values from the database. I tried using Onload on table level but nothing happened.
I want to know what event should I use for this situation and where should I call it.
Many Thanks.