Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
259 B
3
Indexable
Never
<script>
  document.onkeypress = function(e) {
    const fragment = document.createDocumentFragment();
    const li = fragment.appendChild(document.createElement("p"))
    li.textContent = e.key;
    document.body.appendChild(fragment);
  }
</script>
Leave a Comment