The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #33596

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.