I'm trying to store in a var, and then reinsert in body 3 elements of type " p ".
<body>
<p> Um</p>
<p> Dois </p>
<p> Tres </p> ....
When you do this:
<script>
var parag = document.querySelectorAll("p");
document.write(parag);
</script>
What I have printed on the screen is a kind of "label" or list of objects (for the DOM, or elements, pro html, correct?) " p ":
Print like this:
[object NodeList]
Now, how can I get these elements " p ", and effectively reprint in body its contents ??