<h1>Uso di <code>document.write()<code></h1>
<script>
  document.write("<p>Data e ora: " + Date() + "</p>")
</script>
<button onclick="document.writeln('<p>Ho riscritto il documento.</p>')">
  Riscrivi il documento
</button>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.