document get element by id just id code example Example: how to get element by id document.getElementById("demo");