Martin said:
window.frames.frameName.functionName
Thanks for that. I thought that's what it was but it now means the
problem's to deep for me to follow.
The frameset is a HTA whereas the pages in the frameset are HTML. The
"main" frame's page has a number of OBJECT elements. I'm querying the
frame from the frameset to get each OBJECT and to then modify it (if
necessary).
Sadly it only keeps returning the first OBJECT in the page irrespective
of how many OBJECTs there actually are. Part of the code in the frameset
looks like this:
var doc = document.getElementById("mainFrame");
doc.onreadystatechange = function() {
if (doc.readyState == "complete") {
var pageDoc = window.frames.mainFrame.document;
var wmd = pageDoc.getElementsByTagName("object");
var wmdLen = wmd.length;
for (var i = wmdLen; i--
{
tmp = wmd
.getElementsByTagName("param")[0].value;
alert(i+"+"+tmp);
}
}
};
The alert will decrement the value of 'i' but the PARAM value never
changes. Its equal to the value of the first OBJECT even though there
are a number of different ones one the page. It seems like the
getElementsByTagName, in the loop, is only referencing the first OBJECT???
Andrew Poulos