Hi, everyone,

I have a question that is driving me BONKERS. Can DOM objects be passed from one function to another in plain JavaScript?

For example, the following doesn't work:

Code:
function divLoading() {
    var obj = document.getElementById("loadingprogress");
    return obj;
}

function divLoadingHide() {
    divLoading.style.visibility = "hidden";
}
What am I missing?

Thanks,

Randy