Menu
Okay so I’ve just restarted a personal project I was doing about two months ago. I completely forget how to write things on the screen using javascript (sad, I know.) So what I’m doing is access a table and trying to print out the contents. Here’s my code:
[CODE]function DisplayGuts(){ //The purpose of this fucntion is to display the inner HTML of page.
var page = document.body.getElementsByTagName(‘td’);
for (var n = 0; n < document.body.getElementsByTagName(‘td’).length; n++){
window.document.write(page[n].innerHTML);
}
}
What I am doing wrong?