seperate js page is not getting document.getelementbyid code example Example: javascript get element by id var myElement=document.getElementById("someElementID");