So my ultimate goal is for the user to input three or more words, and then I must seperate the words, I.E if there are 4 words, I have to build 4 Rows with the word in each, I have been at it for hours and just can't figure out why the insertRow() method wont work, its telling me that "cannot call insertRow() method of undefined"
what I have in the else section of my conditional:
//build table around input
var table=document.getElementById('myTable');
for(i=0; i<2; i++)
{
table.insertRow(i);
table.insertCell(i);}