It seems I must have a misunderstanding of how the DOM functions work.
I thought that a reference to a spawned window would give you access to
the same method and properties that are available locally.
That is that if I can do getElementById('string') inside a page then I
could also do
myChild.document.getElementById('string') from the parent that spawned
it.
However, if I do
var chartWindow = window.open("displayChart", sortedby+category,
"status,menubar");
alert(chartWindow.document.getElementById('rounded'));
This is null, although
alert(chartWindow.document.body);
does return an HTMLBodyElement.
Am I totally off track? Is it not even possible to do what I am trying
to do?
Obviously its not a big deal to just put the function in the child
page, but I am trying to understand how all of this works more clearly,
and right now I am very confused.
Sorry if I'm being thick ...
Paul