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