ppcguy wrote:
can getElementById() be called off a non-document node.
on page load
temp = document.body;
document.body = set-to-blank...
var elem = temp.getElementById("my_id");
No, - getElementById - is a method of the document only. However, as an
ID is supposed to be unique to the entire document there is not
advantage in calling it on any given node in the tree anyway, except
maybe to determine that no element with that ID was a descendant of the
node on which it would have been called.
Richard.