document.getElementByName examples Example: document.getElementById example Click to copydocument.getElementById("demo").innerHTML = "Hello JavaScript";