Let's say we have this markup:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>project.js</title>
<script src="project.js"></script>
<script>
</script>
</head>
<body>
<h1>some project — javascript & html tests</h1>
<hr />
<p>
testing 123
</p>
</body>
</html>
I know that there are .prependChild()
, .appendChild()
, .innerHTML
, etc, properties and methods, but what I am looking for is how to add (append) contents after the </body>
tag closure?
I need this, without using jQuery — is it possible?
html
can only contain 1head
and 1body
element and comment nodes. Nothing else.) – Condorcetafter body
I should just then append the parent:html
tag? – Welltodobody
. – Condorcetappended or prepended to **head**
orappended or prepended to **body**
.. I'm making a script loader – Welltodo