I know it may be a simple thing, but I can\'t figure out. I am trying to insert some text coming from a JavaScript function onload event into a td.
If your Then you will be able to use: Otherwise, if you do not fancy adding the meaningless is not empty, one popular trick is to insert a non breaking space in it, such that:
document.getElementById('td1').firstChild.data = 'New Value';
  you can use the solution that Jonathan Fingland described in the other answer.