innerhtml is not working code example Example: innerhtml doesn't work document.getElementById("test").innerHTML="foo";