Jon Drukman wrote:
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:<cb*******************@news.demon.co.uk>...
Please do not write attribution novels. The name of the person which
text is quoted is sufficient to follow the discussion. Anything else
can be retrieved via the headers of the postings. Duplicating it
renders discussions less legible.
[...]
frames['prefs_iframe'].document.forms["prefs_form"];
here's what i came up with through my own experimentation:
var x = document.getElementById('prefs_iframe');
if (x.contentWindow) {
x = x.contentWindow.document.forms["prefs_form"];
}
else {
x = x.contentDocument.forms["prefs_form"];
}
works on IE, Moz & Safari. your version seems much more compact
although not very DOM-centric.
Yes, it *seems* to be so. The `frames' collection is part of a
widespread, yet not fully standardized DOM, called "DOM Level 0"
which originates from NN/IE3+ and is still supported in current
browsers (and upon which the W3C DOM is built) while the W3C DOM
is not always fully supported. (Yes, there has been a DOM before
the W3C DOM and there are still other DOMs!, namely the Gecko
DOM). I wonder what you think "DOM-centric" would mean here.
PointedEars