replacing div content with javascript May 20, 2023 by Tarik document.getElementById("test").innerHTML = "new content"