CODE
testDiv.appendChild(document.createTextNode('<table><tr><td><strong>Month</strong></td><td><strong>Principle</strong></td><td><strong>Payment</strong></td></tr>'));
while(tblPrinciple>0){
testDiv.appendChild(document.createTextNode("<tr><td>"+curMonth+"/"+curYear+"</td><td>"+formatCurrency(tblPrinciple)+"</td><td>"+formatCurrency(pymnt)+"</td></tr>"));
mnthlyRate=(tblPrinciple*intRate);
tblPrinciple=tblPrinciple-(pymnt-mnthlyRate)-MonthlyDed;
tblPrinciple=tblPrinciple-OneTime;
OneTime=0;
if (YearlyDed!=0 && YearlyMth==curMonth){
tblPrinciple=(tblPrinciple-YearlyDed);
}
if (curMonth==12){
curMonth=1;
curYear++;
}
else{
curMonth++;
}//end if
} //end while
testDiv.appendChild(document.createTextNode("</table>"));
This is the code I've got and all it does is print the html code across the page instead of building my table.
Thanks for any help