how to get the dom by using the innerhtml code example Example: innerHTML document.getElementById("Test").innerHTML = "<h1>Test</h1>";