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