html get dodument by id code example Example: Finding HTML Element by Id var myElement = document.getElementById("intro");