Hello people. I have several quesitons, and I appreciate any
help that I can get.
1. How do I display a variable in within
<span></span>?
e.g. "var x = 10" in my Javascript gives me "10" on my HTML
page.
I know document.GetElementById is useful but I don't know how to
apply it.
2. How do I create a HTML preview using Javascript? I want
to have a section where people can enter certain variables into
text areas (say one for the hex colour code, one for URL, etc.) and
all these information will be previewed in HTML.
e.g.:
[text area for "color" hex code] [text area for "href" URL]
[text area for "title" caption]
Preview: text with the information entered above embedded as
HTML.
Thank you so much for the help!