get element by id in javascript

JavaScript
document.getElementById("YourElementId");var myElement = document.getElementById("intro");
Source

Also in JavaScript: