getelement by id returns code example
Example 1: javascript get element by id
var element = document.getElementById("YourElementId");
Example 2: what does document.getelementbyid return
function changeColor(newColor) {
var elem = document.getElementById('para');
elem.style.color = newColor;
}