Example. Get the element with the specified ID: document.getElementById("demo ");. Try it yourself ». More "Try it Yourself" examples below.
www.w3schools.com