Click to See Complete Forum and Search --> : Placing text in table


hitman
01-25-2003, 08:56 PM
Hi,

I have just wrote a little script with prompts that print a text result the page. I would like to know how to put the text organised in a table. where do I have to start writing it in the script?
Thank you

Jona
01-25-2003, 09:11 PM
Try..
var lala = prompt("Say something!","")
var lala2 = prompt("Say something else!","")
document.write("<TABLE><TR><TD>");
document.write(lala);
document.write("</TD></TR>");
document.write("<TR><TD>");
document.write(lala2);
document.write("</TD></TR></TABLE>");