Grow your CSS skills. Land your dream job.

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

  • # July 22, 2011 at 3:37 am

    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.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".