get inner text from element in js code example Example: js inner text document.getElementById("text").innerText = "Your new text here"