This is a problem I've been having for a long time, and now I am hoping to straighten this out.
I'm making a table with JavaScript, like this:
document.write("<table>");
for (x=0;x<table_height;x++)
{
document.write("<tr>");
for (y=0;y<table_width;y++)
{
td="blah blah blah";
document.write("<td>"+td+"</td>");
}
document.write("</tr>");
}
document.write("</table>");
But the problem is that document.write() seems to wipe out the rest of the code in the document, so all my functions are gone! I have no idea how to fix it.
Thanks, Alan.
I'm making a table with JavaScript, like this:
document.write("<table>");
for (x=0;x<table_height;x++)
{
document.write("<tr>");
for (y=0;y<table_width;y++)
{
td="blah blah blah";
document.write("<td>"+td+"</td>");
}
document.write("</tr>");
}
document.write("</table>");
But the problem is that document.write() seems to wipe out the rest of the code in the document, so all my functions are gone! I have no idea how to fix it.
Thanks, Alan.