window document by id javascript code example
Example 1: get element by id in javascript
document.getElementById("YourElementId");
Example 2: javascript get element by id
var myElement=document.getElementById("someElementID");
document.getElementById("YourElementId");
var myElement=document.getElementById("someElementID");