how to get the value of the id in dom code example Example: Finding HTML Element by Id var myElement = document.getElementById("intro");