It makes since that, when working with javascript, document.getElementById() can't find the Id of an object that hasn't yet been added to the DOM, however when I nest document.getElementById() in a function and call it after the object has been created, document.getElementById() still can't find the object.

is there a way around this? if not, can someone at least explain to me why it doesn't work?

Thank You

Please show your code. Without showing your code, there isn't much we can help you with.

thank you for the help... I was going to post some examples, but I figured out the answer to my question