DOM - getElementById

This is a method that I use extensively in my manipulation of the DOM

The text in the header and menu options are assigned when my pages load.

The Syntax used to set the header text:

  document.getElementById("htext").innerHTML = "Experiments with the Document Object Model";


External Sources

DOM - getElementById - January 2021