how to update html element js code example Example: how to change html element in javascript document.getElementbyid.innerHTML = "text";