document.append 1

document.append

var div = document.getElementById('myElementID');
div.innerHTML += "Here is some more data appended";

Here is what the above code is Doing:
1. We’re getting the element with the ID of myElementID.
2. We’re appending the string “Here is some more data appended” to the innerHTML of the element.

Similar Posts