treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Getting JavaScript to print text on button click, without replacing page

  • If you write a function, linked to a button that executes it, and use a "document.write" statement, the text written replaces the rest of the page. How can I do it so that it doesn't?
    I heard that you could somehow put the CSS in the script tag or something.