/    Sign up×
Community /Pin to ProfileBookmark

Placing text in table

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

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@JonaJan 26.2003 — 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>");
×

Success!

Help @hitman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...