add innerhtml to div javascript code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: JavaScript append text to div
var div = document.getElementById('myElementID');
div.innerHTML += "Here is some more data appended";