Hello!
I want to change the font of a text node I've just created using appendChild but doesn't work the ways I've tried. Could you tell me how to do it?
var table=document.getElementById("table_name");
tbody = table.appendChild(d.createElement("tbody"));
var row = tbody.appendChild(d.createElement("tr"));
var cell =d.createElement('td');
var txt=document.createTextNode('Hello World!');
cell.appendChild(txt);
row.appendChild(cell);
I want to change the font to: <font size="2" face="Verdana, Arial, Helvetica, sans-serif">
thanks!